From d8dcd1200a9ce5cfb2333b7f43a72c40f8fc80bb Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 7 Jun 2023 21:10:32 +0200 Subject: [PATCH] gnu: Add python-srsly. * gnu/packages/python-xyz.scm (python-srsly): New variable. --- gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e48172de28..a6c2cfbb73 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -31881,6 +31881,40 @@ uses the parsed regular expression, so you get a much more accurate result than trying to just split strings.") (license license:asl2.0))) +(define-public python-srsly + (package + (name "python-srsly") + (version "2.4.6") + (source (origin + (method url-fetch) + (uri (pypi-uri "srsly" version)) + (sha256 + (base32 + "0vsafkvk4g0p5m0dqrczqvlyza837i20xxmb24rrqk5s78r1zd27")))) + (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)) + (native-inputs + (list python-cython + python-pytest + python-pytest-timeout + python-mock + python-numpy + python-psutil)) + (home-page "https://github.com/explosion/srsly") + (synopsis "Serialization utilities for Python") + (description "This package bundles some of the best Python serialization +libraries into one standalone package, with a high-level API that makes it +easy to write code that's correct across platforms and Pythons.") + (license license:expat))) + (define-public python-pyperf (package (name "python-pyperf")