me
/
guix
Archived
1
0
Fork 0

gnu: python-upsetplot: Update to 0.9.0.

* gnu/packages/python-science.scm (python-upsetplot): Update to 0.9.0.
[source]: Remove obsolete snippet.
[arguments]: Remove custom check phase.
[build-system]: Use pyproject-build-system.

Change-Id: I68bcd6840577a12594e491e9fd5e114f9261f6c7
Co-authored-by: Ricardo Wurmus <rekado@elephly.net>
master
nafkhamdc 2024-03-28 12:29:59 +00:00 committed by Ricardo Wurmus
parent fb95491645
commit d616e85ac8
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 3 additions and 19 deletions

View File

@ -1435,31 +1435,15 @@ for handling arrays and scalars with units,respectively")
(define-public python-upsetplot (define-public python-upsetplot
(package (package
(name "python-upsetplot") (name "python-upsetplot")
(version "0.6.0") (version "0.9.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "UpSetPlot" version)) (uri (pypi-uri "UpSetPlot" version))
(sha256 (sha256
(base32 (base32
"11zrykwnb00w5spx4mnsnm0f9gwrphdczainpmwkyyi50vipaa2l")) "14l5gcj88cclkj1mf74bcy1pxq1hgsiy27fa3vxrsk32ik1nmdwm"))))
(modules '((guix build utils))) (build-system pyproject-build-system)
(snippet
;; Patch for compatibility with newer setuptools:
;; https://github.com/jnothman/UpSetPlot/pull/178
'(substitute* "upsetplot/data.py"
(("import distutils")
"from distutils.version import LooseVersion")
(("if distutils\\.version\\.LooseVersion")
"if LooseVersion")))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-v" "--doctest-modules")))))))
(propagated-inputs (propagated-inputs
(list python-matplotlib python-pandas)) (list python-matplotlib python-pandas))
(native-inputs (native-inputs