mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-inflect: Update to 7.5.0.
* gnu/packages/python-xyz.scm (python-inflect): Update to 7.5.0. [propagated-inputs]: Remove python-pydantic; add python-more-itertools, python-typeguard, and python-typing-extensions. [native-inputs]: Remove python-flake8, python-pytest-black, python-pytest-checkdocs, python-pytest-cov, python-pytest-enabler, python-pytest-flake8, and python-pytest-mypy. [arguments]: Remove custom phases and test flags. Change-Id: I50ec5e491143a99a8eb6ee00d2aaaddfe7d8a2a8
This commit is contained in:
parent
0729d415e6
commit
4270c484ca
1 changed files with 6 additions and 45 deletions
|
@ -22730,57 +22730,18 @@ objects, patterned after the Mocha library for Ruby.")
|
||||||
(define-public python-inflect
|
(define-public python-inflect
|
||||||
(package
|
(package
|
||||||
(name "python-inflect")
|
(name "python-inflect")
|
||||||
(version "6.0.4")
|
(version "7.5.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "inflect" version))
|
(uri (pypi-uri "inflect" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1sqj4svg2vbn4vq332nxnvky2433rgxbvjd529lddjmn2yd68hhq"))))
|
"07spmlkmskwhxc0j5j4ms3w0f6pyv3h8iqwcbahdabklqc0riwgs"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(propagated-inputs (list python-more-itertools python-typeguard
|
||||||
(list
|
python-typing-extensions))
|
||||||
#:test-flags
|
(native-inputs (list python-pygments python-pytest python-setuptools
|
||||||
'(list "--ignore=_custom_build/backend.py"
|
python-setuptools-scm python-wheel))
|
||||||
"-k" "not mypy-status")
|
|
||||||
#:phases
|
|
||||||
'(modify-phases %standard-phases
|
|
||||||
;; The build system insists on ignoring the existing environment and
|
|
||||||
;; running "pip install".
|
|
||||||
(add-after 'unpack 'do-not-use-pip-install
|
|
||||||
(lambda _
|
|
||||||
(substitute* "pyproject.toml"
|
|
||||||
(("^build-backend.*") "\
|
|
||||||
build-backend = \"backend\"
|
|
||||||
backend_path = [\"_custom_build\"]\n")
|
|
||||||
(("requires = .*") "requires = []\n"))
|
|
||||||
(mkdir-p "_custom_build")
|
|
||||||
(with-output-to-file "_custom_build/backend.py"
|
|
||||||
(lambda _
|
|
||||||
(display "\
|
|
||||||
from setuptools import build_meta as _orig
|
|
||||||
from setuptools.build_meta import *
|
|
||||||
def get_requires_for_build_wheel(config_settings=None):
|
|
||||||
return []
|
|
||||||
def get_requires_for_build_sdist(config_settings=None):
|
|
||||||
return []
|
|
||||||
")))
|
|
||||||
(setenv "PYTHONPATH"
|
|
||||||
(string-append (getcwd) "/_custom_build")))))))
|
|
||||||
(propagated-inputs (list python-pydantic))
|
|
||||||
(native-inputs (list python-flake8
|
|
||||||
python-pygments
|
|
||||||
python-pytest
|
|
||||||
python-pytest-black
|
|
||||||
python-pytest-checkdocs
|
|
||||||
python-pytest-cov
|
|
||||||
python-pytest-enabler
|
|
||||||
python-pytest-flake8
|
|
||||||
python-pytest-mypy
|
|
||||||
;; For the version number
|
|
||||||
python-setuptools-scm
|
|
||||||
python-setuptools
|
|
||||||
python-wheel))
|
|
||||||
(home-page "https://github.com/jaraco/inflect")
|
(home-page "https://github.com/jaraco/inflect")
|
||||||
(synopsis "Correctly generate plurals, singular nouns, ordinals, indefinite articles")
|
(synopsis "Correctly generate plurals, singular nouns, ordinals, indefinite articles")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue