gnu: Add python-upsetplot.
* gnu/packages/python-science.scm (python-upsetplot): New variable.
This commit is contained in:
parent
4d0fdde344
commit
456355c253
1 changed files with 37 additions and 0 deletions
|
@ -557,3 +557,40 @@ (define-public python-statannot
|
|||
"This is a Python package to compute statistical test and add statistical
|
||||
annotations on an existing boxplots and barplots generated by seaborn.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public python-upsetplot
|
||||
(package
|
||||
(name "python-upsetplot")
|
||||
(version "0.4.1")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "UpSetPlot" version))
|
||||
(sha256
|
||||
(base32
|
||||
"0kwljcmsvrxm33y3ssham2bwv4a5m31mv96y9h18va0cv7s3mqn1"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-versioning
|
||||
(lambda _
|
||||
(substitute* "setup.py"
|
||||
(("pytest-cov<2.6") "pytest-cov"))))
|
||||
(replace 'check
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "pytest" "-v" "--doctest-modules"))))))
|
||||
(propagated-inputs
|
||||
`(("python-matplotlib" ,python-matplotlib)
|
||||
("python-pandas" ,python-pandas)))
|
||||
(native-inputs
|
||||
`(("python-pytest-runner" ,python-pytest-runner)
|
||||
("python-pytest-cov" ,python-pytest-cov)))
|
||||
(home-page "https://upsetplot.readthedocs.io")
|
||||
(synopsis "Draw UpSet plots with Pandas and Matplotlib")
|
||||
(description
|
||||
"This is a Python implementation of UpSet plots by Lex et al.
|
||||
UpSet plots are used to visualize set overlaps; like Venn diagrams but more
|
||||
readable.")
|
||||
(license license:bsd-3)))
|
||||
|
|
Loading…
Reference in a new issue