diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2025-02-12 10:09:47 +0100 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:12 +0200 |
commit | be8ff088ec8523a22a60aff0aa30653d51e9f82a (patch) | |
tree | ce3ec77f097bb560012672b9c4b8862cd26c43cd | |
parent | c080336271fd7737ab36d73d62a55fd0c172c62b (diff) |
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
-rw-r--r-- | gnu/packages/machine-learning.scm | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index f894f8e425..4708dcd81d 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -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 |