mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05:00
gnu: python-sympy, python2-sympy: Only run core tests.
* gnu/packages/python.scm (python-sympy, python2-sympy)[arguments]: Move tests after installation; run only core tests.
This commit is contained in:
parent
1f3921e143
commit
bbf8540d43
1 changed files with 24 additions and 1 deletions
|
@ -5066,6 +5066,17 @@ (define-public python-sympy
|
|||
(sha256
|
||||
(base32 "190n29sppw7g8ihilc5451y7jlfcaw56crqiqbf1jff43dlmfnxc"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; Run the core tests after installation. By default it would run
|
||||
;; *all* tests, which take a very long time to complete and are known
|
||||
;; to be flaky.
|
||||
(delete 'check)
|
||||
(add-after 'install 'check
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(invoke "python3" "-c" "import sympy; sympy.test(\"/core\")")
|
||||
#t)))))
|
||||
(propagated-inputs
|
||||
`(("python-mpmath" ,python-mpmath)))
|
||||
(home-page "http://www.sympy.org/")
|
||||
|
@ -5077,7 +5088,19 @@ (define-public python-sympy
|
|||
(license license:bsd-3)))
|
||||
|
||||
(define-public python2-sympy
|
||||
(package-with-python2 python-sympy))
|
||||
(package
|
||||
(inherit (package-with-python2 python-sympy))
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; Run the core tests after installation. By default it would run
|
||||
;; *all* tests, which take a very long time to complete and are known
|
||||
;; to be flaky.
|
||||
(delete 'check)
|
||||
(add-after 'install 'check
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(invoke "python" "-c" "import sympy; sympy.test(\"/core\")")
|
||||
#t)))))))
|
||||
|
||||
(define-public python-q
|
||||
(package
|
||||
|
|
Loading…
Reference in a new issue