mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-lap: Update to 0.5.12.
* gnu/packages/machine-learning.scm (python-lap): Update to 0.5.12. [build-system]: Switch to pyproject. [arguments]{test-flags}: Run tests in output. {phases}: Add a 'check-cleanup phase to remove tests from output. [propagated-inputs]: Remove python-scipy. [native-inputs]: Add python-setuptools, python-wheel. Change-Id: Id4c94c8a90c98ae4674e5d6c5a37ae9cfc9a63a1 Signed-off-by: Steve George <steve@futurile.net>
This commit is contained in:
parent
e4cdcbbcbb
commit
95e8a42360
1 changed files with 19 additions and 20 deletions
|
@ -6492,34 +6492,33 @@ of Hidden Markov Models.")
|
||||||
(define-public python-lap
|
(define-public python-lap
|
||||||
(package
|
(package
|
||||||
(name "python-lap")
|
(name "python-lap")
|
||||||
(version "0.4.0")
|
(version "0.5.12")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "lap" version))
|
(uri (pypi-uri "lap" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0fqfxpq4jg9h4wxjw540gjmvfg1ccc1nssk7i9njg7qfdybxknn4"))))
|
"1za4mf5nd7vzwd24sy2mfxrk8mnwq7d8rv6h96yh8v5flx7422sp"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags #~(list "-v" #$output)
|
||||||
(replace 'build
|
#:phases
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
#~(modify-phases %standard-phases
|
||||||
(invoke "python" "setup.py" "build"
|
(add-after 'check 'check-cleanup
|
||||||
"--cpu-baseline=sse2")))
|
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
;; The tests must be run from elsewhere.
|
(for-each
|
||||||
(mkdir-p "/tmp/test")
|
delete-file-recursively
|
||||||
(copy-recursively "lap/tests" "/tmp/test")
|
(find-files #$output
|
||||||
(with-directory-excursion "/tmp/test"
|
(lambda (file stat)
|
||||||
(invoke "pytest" "-vv"))))))))
|
(or (member (basename file)
|
||||||
|
'("tests" ".pytest_cache"))))
|
||||||
|
#:directories? #t))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-numpy
|
(list python-numpy))
|
||||||
python-scipy))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-cython python-pytest))
|
(list python-cython python-pytest python-setuptools python-wheel))
|
||||||
(home-page "https://github.com/gatagat/lap")
|
(home-page "https://github.com/gatagat/lap")
|
||||||
(synopsis "Linear Assignment Problem solver (LAPJV/LAPMOD)")
|
(synopsis "Linear Assignment Problem solver (LAPJV/LAPMOD)")
|
||||||
(description "Lap is a linear assignment problem solver using Jonker-Volgenant
|
(description "Lap is a linear assignment problem solver using Jonker-Volgenant
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue