~ruther/guix-local

c6ead15d32e7a9dfe0e0b08c1776b473a6f0e264 — Ricardo Wurmus 1 year, 3 months ago 573ca30
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
1 files changed, 6 insertions(+), 25 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +6 -25
@@ 37777,38 37777,19 @@ writing STL files.  It supports both the text and binary forms of STL.")
(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