mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 20:49:29 -05:00
gnu: python-upsetplot: Update to 0.6.0.
* gnu/packages/python-science.scm (python-upsetplot): Update to 0.6.0. [source](modules, snippet): New fields. [arguments]: Remove obsolete phase. Respect TESTS? in check phase.
This commit is contained in:
parent
4f6cbc0aee
commit
b2faad4bd0
1 changed files with 15 additions and 10 deletions
|
@ -675,26 +675,31 @@ (define-public python-statannot
|
||||||
(define-public python-upsetplot
|
(define-public python-upsetplot
|
||||||
(package
|
(package
|
||||||
(name "python-upsetplot")
|
(name "python-upsetplot")
|
||||||
(version "0.4.1")
|
(version "0.6.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
|
||||||
"0kwljcmsvrxm33y3ssham2bwv4a5m31mv96y9h18va0cv7s3mqn1"))))
|
"11zrykwnb00w5spx4mnsnm0f9gwrphdczainpmwkyyi50vipaa2l"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(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)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-versioning
|
|
||||||
(lambda _
|
|
||||||
(substitute* "setup.py"
|
|
||||||
(("pytest-cov<2.6") "pytest-cov"))))
|
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(add-installed-pythonpath inputs outputs)
|
(when tests?
|
||||||
(invoke "pytest" "-v" "--doctest-modules"))))))
|
(invoke "pytest" "-v" "--doctest-modules")))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-matplotlib python-pandas))
|
(list python-matplotlib python-pandas))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Loading…
Reference in a new issue