mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-flufl-i18n: Update to 5.1.0.
* gnu/packages/python-xyz.scm (python-flufl-i18n): Update to 5.1.0. [build-system]: Switch to pyproject. [arguments]{test-flags}: Ignore docs and coverage tests. {phases}: Add phase 'add-custom-dist-info. [native-inputs]: Add python-hatchling, python-pytest, python-pytest-cov, python-sybil. Change-Id: Ibbe6edfe9fcf94c0b09eed6a308f452d25073760 Signed-off-by: Steve George <steve@futurile.net>
This commit is contained in:
parent
b26969865f
commit
0d41651da2
1 changed files with 28 additions and 4 deletions
|
@ -34748,17 +34748,41 @@ RFC 3464.")
|
||||||
(define-public python-flufl-i18n
|
(define-public python-flufl-i18n
|
||||||
(package
|
(package
|
||||||
(name "python-flufl-i18n")
|
(name "python-flufl-i18n")
|
||||||
(version "3.0")
|
(version "5.1.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "flufl.i18n" version))
|
(uri (pypi-uri "flufl_i18n" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1flwpn1xhgc957zj3zxw92dhdjh0lsy0hdvzq32dzqpsajfsvq1r"))))
|
"0bm4kmi04gm164y5nmadmrg79y1l1cs9iwxcv9y7gq0dgyr20xms"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:test-flags
|
||||||
|
#~(list "--no-cov" "--ignore-glob=docs/*")
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
;; This phase add a symlink of dist-info dir for packages
|
||||||
|
;; expecting flufl.i18n rather than flufl_i18n (mailman).
|
||||||
|
(add-after 'install 'add-custom-dist-info
|
||||||
|
(lambda _
|
||||||
|
(for-each
|
||||||
|
(lambda (dir)
|
||||||
|
(with-directory-excursion (dirname dir)
|
||||||
|
(let ((base (basename dir)))
|
||||||
|
(symlink base
|
||||||
|
(string-join (string-split base #\_) ".")))))
|
||||||
|
(find-files #$output
|
||||||
|
(lambda (file stat)
|
||||||
|
(string-suffix? ".dist-info" file))
|
||||||
|
#:directories? #t)))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-atpublic))
|
(list python-atpublic))
|
||||||
|
(native-inputs
|
||||||
|
(list python-hatchling
|
||||||
|
python-pytest
|
||||||
|
python-pytest-cov
|
||||||
|
python-sybil))
|
||||||
(home-page "https://flufli18n.readthedocs.io")
|
(home-page "https://flufli18n.readthedocs.io")
|
||||||
(synopsis "API for Python internationalization")
|
(synopsis "API for Python internationalization")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue