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:
Ricardo Wurmus 2025-01-10 21:38:10 +01:00
parent 7ffcf4c50c
commit 57df7589ef
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -37777,38 +37777,19 @@ (define-public python-stltools
(define-public python-multipart
(package
(name "python-multipart")
(version "0.0.5")
(version "0.0.20")
(source (origin
(method url-fetch)
(uri (pypi-uri "python-multipart" version))
(uri (pypi-uri "python_multipart" version))
(sha256
(base32
"0hzshd665rl1bkwvaj9va4j3gs8nmb478fbvligx20663xhmzfzp"))))
(build-system python-build-system)
(propagated-inputs (list python-six))
"04wxzakk3hs4z4xf3ldhym3gm46hjicn4iwiw150c8wfbfscml4d"))))
(build-system pyproject-build-system)
(native-inputs
(list python-mock
(list python-hatchling
python-pytest
python-pytest-cov
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)")))))))
python-pyyaml))
(home-page "https://github.com/andrew-d/python-multipart")
(synopsis "Streaming multipart parser for Python")
(description