mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-hmmlearn: Update to 0.3.3.
* gnu/packages/machine-learning.scm (python-hmmlearn): Update to 0.3.3. [build-system]: Use pyproject-build-system. [arguments]: Remove custom 'check phase; add phases 'set-core-count and 'build-extensions. [propagated-inputs]: Remove pybind11 and python-setuptools-scm. [native-inputs]: Add pybind11, python-setuptools-scm, and util-linux. [properties]: Add hints for the updater. Change-Id: I1acb69c74ae9c4a508fe28cdaf834d258e7778ff
This commit is contained in:
parent
ed1266ea8c
commit
1f047996b8
1 changed files with 17 additions and 15 deletions
|
@ -5422,32 +5422,34 @@ Python.")
|
||||||
(define-public python-hmmlearn
|
(define-public python-hmmlearn
|
||||||
(package
|
(package
|
||||||
(name "python-hmmlearn")
|
(name "python-hmmlearn")
|
||||||
(version "0.2.8")
|
(version "0.3.3")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "hmmlearn" version))
|
(uri (pypi-uri "hmmlearn" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1yd5l9ra37mks41mn5bigav7xpb161a9yqlcnz4ir076vkik2sb9"))))
|
"1v24rkqjjf67w2rys25qxa3vk30bf23m7zn1ilihqzi5qp25sg0x"))))
|
||||||
(build-system python-build-system)
|
(properties
|
||||||
|
'((updater-extra-native-inputs . ("pybind11" "python-setuptools-scm"))))
|
||||||
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
'(modify-phases %standard-phases
|
||||||
(replace 'check
|
(add-after 'unpack 'set-core-count
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda _
|
||||||
(when tests?
|
;; "Could not find the number of physical cores", so we tell it
|
||||||
(with-directory-excursion (string-append #$output "/lib")
|
;; how many cores to use.
|
||||||
(invoke "python" "-m" "pytest"))))))))
|
(setenv "LOKY_MAX_CPU_COUNT" "1")))
|
||||||
|
(add-before 'check 'build-extensions
|
||||||
|
(lambda _
|
||||||
|
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list pybind11
|
(list python-numpy python-scikit-learn python-scipy))
|
||||||
python-numpy
|
|
||||||
python-scikit-learn
|
|
||||||
python-scipy
|
|
||||||
python-setuptools-scm))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pytest))
|
(list pybind11 python-pytest python-setuptools-scm
|
||||||
|
util-linux)) ;for lscpu
|
||||||
(home-page "https://github.com/hmmlearn/hmmlearn")
|
(home-page "https://github.com/hmmlearn/hmmlearn")
|
||||||
(synopsis "Hidden Markov Models with scikit-learn like API")
|
(synopsis "Hidden Markov Models with scikit-learn like API")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue