mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-natsort: Update to 8.4.0.
* gnu/packages/python-xyz.scm (python-natsort): Update to 8.4.0. [buld-system]: Switch to pyproject-build-system. [arguments]: Drop all. [propagated-inputs]: Add python-fastnumbers. [native-inputs]: Remove python-hypothesis and python-pytest-cov; add python-setuptools. Change-Id: Ib0efe56d7f03b474d935beaede108b7a593b4444
This commit is contained in:
parent
76206d7487
commit
f1be2c7bee
1 changed files with 13 additions and 27 deletions
|
@ -24922,36 +24922,22 @@ implementation of your Python package and its public API surface.")
|
||||||
(define-public python-natsort
|
(define-public python-natsort
|
||||||
(package
|
(package
|
||||||
(name "python-natsort")
|
(name "python-natsort")
|
||||||
(version "7.1.1")
|
(version "8.4.0")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (pypi-uri "natsort" version))
|
(method url-fetch)
|
||||||
(sha256
|
(uri (pypi-uri "natsort" version))
|
||||||
(base32
|
(sha256
|
||||||
"00y49bfsi7rrsd1s42gc2w95a6arl9ipdsx2493hr0v54fj07ih0"))))
|
(base32 "10d53q50zn2s8iiszv01nr9r4imimc2dvplkl4ymj1sm1r52qca5"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
|
||||||
`(#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-after 'unpack 'remove-test-hypothesis-deadlines
|
|
||||||
(lambda _
|
|
||||||
(substitute* "tests/test_utils.py"
|
|
||||||
(("from hypothesis import given")
|
|
||||||
"from hypothesis import given, settings")
|
|
||||||
(("( +)@given" all spaces)
|
|
||||||
(string-append spaces "@settings(deadline=None)\n" all)))))
|
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(invoke "pytest" "-v")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list glibc-utf8-locales ;; Tests want en_US.UTF-8
|
(list glibc-utf8-locales ;; Tests want en_US.UTF-8
|
||||||
python-hypothesis
|
python-pytest
|
||||||
python-pytest-cov
|
|
||||||
python-pytest-mock
|
python-pytest-mock
|
||||||
python-pytest))
|
python-setuptools))
|
||||||
(propagated-inputs ; TODO: Add python-fastnumbers.
|
(propagated-inputs
|
||||||
(list python-pyicu))
|
(list python-fastnumbers
|
||||||
|
python-pyicu))
|
||||||
(home-page "https://github.com/SethMMorton/natsort")
|
(home-page "https://github.com/SethMMorton/natsort")
|
||||||
(synopsis "Natural sorting for python and shell")
|
(synopsis "Natural sorting for python and shell")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue