mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-ml-collections: Update to 1.0.0.
* gnu/packages/machine-learning.scm (python-ml-collections): Update to 1.0.0. [source]: Fetch from git repository. [arguments]: Remove custom 'check phase; use test-flags instead. [propagated-inputs]: Remove python-six. [native-inputs]: Remove python-mock, python-setuptools, and python-wheel; add python-pylint, python-pytest-xdist, and python-flit-core. Change-Id: Icdd340d138a14eaa5b1972d53b4a788a2a0e830e
This commit is contained in:
parent
c080336271
commit
be8ff088ec
1 changed files with 12 additions and 20 deletions
|
@ -423,33 +423,25 @@ machine learning algorithms based on GPs.")
|
|||
(define-public python-ml-collections
|
||||
(package
|
||||
(name "python-ml-collections")
|
||||
(version "0.1.1")
|
||||
(version "1.0.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "ml_collections" version))
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/google/ml_collections")
|
||||
(commit (string-append "v" version))))
|
||||
(sha256
|
||||
(base32 "1k38psfzqsqnl99fl578bd07zdmvfkja61r3sgjs2fj3xircrvrz"))))
|
||||
(base32 "1f3rwbgnnvgh2jgnkwxfjdw18yly41hlx9fy56h0x36zyy8p0j21"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
;; TODO: we can't seem to run the config_flags tests, because
|
||||
;; the installed Python files conflict with those from the
|
||||
;; source directory, resulting in constants to be defined more
|
||||
;; than once.
|
||||
(invoke "pytest" "ml_collections/config_dict/tests"
|
||||
;; This one fails because we're testing the __main__
|
||||
;; class, not config_dict_test.
|
||||
"-k" "not testJSONConversionBestEffort")))))))
|
||||
#:test-flags '(list "--pyargs" "ml_collections/config_dict/tests")))
|
||||
(propagated-inputs
|
||||
(list python-absl-py python-pyyaml python-six))
|
||||
(native-inputs (list python-mock python-pytest python-setuptools
|
||||
python-wheel))
|
||||
(list python-absl-py python-pyyaml))
|
||||
(native-inputs (list python-pylint
|
||||
python-pytest
|
||||
python-pytest-xdist
|
||||
python-flit-core))
|
||||
(home-page "https://github.com/google/ml_collections")
|
||||
(synopsis "Python collections designed for Machine Learning usecases")
|
||||
(description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue