~ruther/guix-local

6de01dfdfa31028f3711d9b8d58ce4a1251d4e06 — Sharlatan Hellseher 6 months ago 25f4edf
gnu: python-srsly: Update to 2.5.1.

* gnu/packages/python-xyz.scm (python-srsly): Update to 2.5.1.
[arguments] <test-flags>: Provide option to run tests again installed
module, skip 3 failing tests.
<phases>: Remove 'build-extensions.
[native-inputs]: Remove python-wheel.

Change-Id: I4ee33c5ec18caeb6fbb5685e15bc557918f3612c
1 files changed, 14 insertions(+), 13 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +14 -13
@@ 38578,32 38578,33 @@ than trying to just split strings.")
(define-public python-srsly
  (package
    (name "python-srsly")
    (version "2.4.8")
    (version "2.5.1")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "srsly" version))
              (sha256
               (base32
                "14ca3gwmhr24axxdhn73157wzzjkmi1s1ka91dz49hh9a2k9akdj"))))
                "0zn74zyb928v898j6l86a83qgdvza78ksjg0v8ixla9yrzv4n6xb"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'check 'build-extensions
            (lambda _
              ;; Cython extensions have to be built before running the tests.
              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
    (propagated-inputs (list python-catalogue))
      #:test-flags
      #~(list "--pyargs" "srsly"
              ;; 3 tests fail in
              ;; tests/cloudpickle/cloudpickle_test.py::CloudPickleTest
              "-k" (string-append "not test_import"
                                  " and not test_logger"
                                  " and not test_multiprocess"))))
    (native-inputs
     (list python-cython
           python-pytest
           python-pytest-timeout
           python-mock
           python-numpy
           python-psutil
           python-setuptools
           python-wheel))
           python-pytest
           python-pytest-timeout
           python-setuptools))
    (propagated-inputs
     (list python-catalogue))
    (home-page "https://github.com/explosion/srsly")
    (synopsis "Serialization utilities for Python")
    (description "This package bundles some of the best Python serialization