~ruther/guix-local

be8ff088ec8523a22a60aff0aa30653d51e9f82a — Ricardo Wurmus 1 year, 5 months ago c080336
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
1 files changed, 12 insertions(+), 20 deletions(-)

M gnu/packages/machine-learning.scm
M gnu/packages/machine-learning.scm => gnu/packages/machine-learning.scm +12 -20
@@ 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