gnu: python-bayesicfitting: Refresh package style.
* gnu/packages/astronomy.scm (python-bayesicfitting): Adjust indentation. [build-system]: Swap to pyproject-build-system. [arguments] <#:test-flags>: Add them. <#:phases>: Use test flags in 'check phase. Change-Id: Iffc8591199bbaf2a0da95b6b22476e34121dbe79master
parent
b332e7b85e
commit
725d92f54a
|
@ -1934,25 +1934,31 @@ specifically in the C code.")
|
||||||
(package
|
(package
|
||||||
(name "python-bayesicfitting")
|
(name "python-bayesicfitting")
|
||||||
(version "3.2.0")
|
(version "3.2.0")
|
||||||
(source (origin
|
(source
|
||||||
(method git-fetch)
|
(origin
|
||||||
(uri (git-reference
|
(method git-fetch)
|
||||||
(url "https://github.com/dokester/BayesicFitting")
|
(uri (git-reference
|
||||||
(commit (string-append "v" version))))
|
(url "https://github.com/dokester/BayesicFitting")
|
||||||
(file-name (git-file-name name version))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(file-name (git-file-name name version))
|
||||||
(base32
|
(sha256
|
||||||
"0q6v7w9b1xzam0qn5vsl5wrdp1fkfpsn411pzd8wyy9giznpajxi"))))
|
(base32 "0q6v7w9b1xzam0qn5vsl5wrdp1fkfpsn411pzd8wyy9giznpajxi"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:phases #~(modify-phases %standard-phases
|
(list
|
||||||
(replace 'check
|
#:test-flags #~(list "-m" "unittest" "discover" "test")
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
#:phases
|
||||||
(when tests?
|
#~(modify-phases %standard-phases
|
||||||
(invoke "python" "-m" "unittest" "discover"
|
(replace 'check
|
||||||
"test")))))))
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
(propagated-inputs (list python-astropy python-future python-matplotlib
|
(when tests?
|
||||||
python-numpy python-scipy))
|
(apply invoke "python" test-flags)))))))
|
||||||
|
(propagated-inputs
|
||||||
|
(list python-astropy
|
||||||
|
python-future
|
||||||
|
python-matplotlib
|
||||||
|
python-numpy
|
||||||
|
python-scipy))
|
||||||
(home-page "https://www.bayesicfitting.nl")
|
(home-page "https://www.bayesicfitting.nl")
|
||||||
(synopsis "Python Toolbox for Astronimical Bayesian fitting")
|
(synopsis "Python Toolbox for Astronimical Bayesian fitting")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue