mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-multipart: Update to 0.0.20.
* gnu/packages/python-xyz.scm (python-multipart): Update to 0.0.20. [native-inputs]: Remove python-mock, python-setuptools, and python-wheel; add python-hatchling. [build-system]: Use pyproject-build-system. [arguments]: Remove. Change-Id: If5400ee7e77ada5ad84fa06cf27f0190d55ad805
This commit is contained in:
parent
573ca3028d
commit
c6ead15d32
1 changed files with 6 additions and 25 deletions
|
@ -37777,38 +37777,19 @@ writing STL files. It supports both the text and binary forms of STL.")
|
||||||
(define-public python-multipart
|
(define-public python-multipart
|
||||||
(package
|
(package
|
||||||
(name "python-multipart")
|
(name "python-multipart")
|
||||||
(version "0.0.5")
|
(version "0.0.20")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "python-multipart" version))
|
(uri (pypi-uri "python_multipart" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0hzshd665rl1bkwvaj9va4j3gs8nmb478fbvligx20663xhmzfzp"))))
|
"04wxzakk3hs4z4xf3ldhym3gm46hjicn4iwiw150c8wfbfscml4d"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(propagated-inputs (list python-six))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-mock
|
(list python-hatchling
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-cov
|
python-pytest-cov
|
||||||
python-pyyaml
|
python-pyyaml))
|
||||||
python-setuptools
|
|
||||||
python-wheel))
|
|
||||||
(arguments
|
|
||||||
`(#:phases (modify-phases %standard-phases
|
|
||||||
;; There is a bug in the test_suit specification.
|
|
||||||
(add-after 'unpack 'patch-test-suite
|
|
||||||
(lambda _
|
|
||||||
;; Make compatible with PyYAML 6.
|
|
||||||
(substitute* "multipart/tests/test_multipart.py"
|
|
||||||
(("yaml.load")
|
|
||||||
"yaml.safe_load"))
|
|
||||||
(substitute* "setup.py"
|
|
||||||
(("test_suite = 'multipart.tests.suite'")
|
|
||||||
"test_suite = 'multipart.tests.test_multipart.suite'"))
|
|
||||||
;; Needed by PyYAML 6.0.
|
|
||||||
(substitute* "multipart/tests/test_multipart.py"
|
|
||||||
(("yaml_data = yaml.load\\(f\\)")
|
|
||||||
"yaml_data = yaml.load(f, Loader=yaml.SafeLoader)")))))))
|
|
||||||
(home-page "https://github.com/andrew-d/python-multipart")
|
(home-page "https://github.com/andrew-d/python-multipart")
|
||||||
(synopsis "Streaming multipart parser for Python")
|
(synopsis "Streaming multipart parser for Python")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue