mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-09 12:49:45 -05:00
gnu: python-mpmath: Update to 1.2.1.
* gnu/packages/python-xyz.scm (python-mpmath): Update to 1.2.1. [source]: Fetch from git. [arguments]: Run tests directly with pytest; set the version with setuptools. [native-inputs]: Add python-setuptools-scm.
This commit is contained in:
parent
722c4685f0
commit
b67013c8ca
1 changed files with 33 additions and 23 deletions
|
@ -9346,31 +9346,41 @@ (define-public python2-seaborn
|
||||||
|
|
||||||
(define-public python-mpmath
|
(define-public python-mpmath
|
||||||
(package
|
(package
|
||||||
(name "python-mpmath")
|
(name "python-mpmath")
|
||||||
(version "1.1.0")
|
(version "1.2.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "mpmath" version))
|
(uri (git-reference
|
||||||
(file-name (git-file-name name version))
|
(url "https://github.com/fredrik-johansson/mpmath")
|
||||||
(sha256
|
(commit "c6a35f9ee7c294bcf4e0517bc76b268843db9499")))
|
||||||
(base32
|
(file-name (git-file-name name version))
|
||||||
"1xlrcja213jpfhw25q1jl5pl10w1a2cc68x1c4mkicxsbzhan5zw"))))
|
(sha256
|
||||||
(build-system python-build-system)
|
(base32
|
||||||
(native-inputs
|
"0ifw59fjjls3mas104rh0frilvab2fhk1dkjraxlqni5n9l676im"))))
|
||||||
`(("python-pytest" ,python-pytest)))
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(add-before 'build 'set-version
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "python" "mpmath/tests/runtests.py" "-local"))))))
|
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version)
|
||||||
(home-page "https://mpmath.org")
|
;; ZIP does not support timestamps before 1980.
|
||||||
(synopsis "Arbitrary-precision floating-point arithmetic in python")
|
(setenv "SOURCE_DATE_EPOCH" "315532800")))
|
||||||
(description
|
(replace 'check
|
||||||
"@code{mpmath} can be used as an arbitrary-precision substitute for
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(add-installed-pythonpath inputs outputs)
|
||||||
|
(invoke "pytest" "-vv")))))))
|
||||||
|
(native-inputs
|
||||||
|
`(("python-pytest" ,python-pytest)
|
||||||
|
("python-setuptools-scm" ,python-setuptools-scm)))
|
||||||
|
(home-page "https://mpmath.org")
|
||||||
|
(synopsis "Arbitrary-precision floating-point arithmetic in python")
|
||||||
|
(description
|
||||||
|
"@code{mpmath} can be used as an arbitrary-precision substitute for
|
||||||
Python's float/complex types and math/cmath modules, but also does much
|
Python's float/complex types and math/cmath modules, but also does much
|
||||||
more advanced mathematics.")
|
more advanced mathematics.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python2-mpmath
|
(define-public python2-mpmath
|
||||||
(package-with-python2 python-mpmath))
|
(package-with-python2 python-mpmath))
|
||||||
|
|
Loading…
Reference in a new issue