gnu: python-mohawk: Update to 1.1.0-0.b789916.

* gnu/packages/python-web.scm (python-mohawk): Update to 1.1.0-0.b789916.
[source]: Switch to git-fetch. Use patch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Set <#:test-flags>.
[native-inputs]: Remove them. Add python-pytest and
python-setuptools-next.

* gnu/packages/patches/python-mohawk-pytest.patch: Add patch from
upstream Github PR.
* gnu/local.mk: Record patch.

Change-Id: I866683573757909b9b5b808cd693991358131c46
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-06 15:57:59 +02:00 committed by Sharlatan Hellseher
parent d0283dde90
commit ae3fbf21ca
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
3 changed files with 1044 additions and 17 deletions

View file

@ -2054,6 +2054,7 @@ dist_patch_DATA = \
%D%/packages/patches/python-feedparser-missing-import.patch \ %D%/packages/patches/python-feedparser-missing-import.patch \
%D%/packages/patches/python-louvain-fix-test.patch \ %D%/packages/patches/python-louvain-fix-test.patch \
%D%/packages/patches/python-matplotlib-fix-legend-loc-best-test.patch \ %D%/packages/patches/python-matplotlib-fix-legend-loc-best-test.patch \
%D%/packages/patches/python-mohawk-pytest.patch \
%D%/packages/patches/python-numpy-gcc-14.patch \ %D%/packages/patches/python-numpy-gcc-14.patch \
%D%/packages/patches/python-random2-getrandbits-test.patch \ %D%/packages/patches/python-random2-getrandbits-test.patch \
%D%/packages/patches/python-pillow-use-zlib-1.3.patch \ %D%/packages/patches/python-pillow-use-zlib-1.3.patch \

File diff suppressed because it is too large Load diff

View file

@ -5450,24 +5450,32 @@ protocol, both client and server for Python asyncio module.
(license license:asl2.0))) (license license:asl2.0)))
(define-public python-mohawk (define-public python-mohawk
(let ((commit "b7899166880e890f01cf2531b5686094ba08df8f")
(revision "0"))
(package (package
(name "python-mohawk") (name "python-mohawk")
(version "1.1.0") (version (git-version "1.1.0" revision commit))
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "mohawk" version)) (method git-fetch)
(uri (git-reference
(url "https://github.com/kumar303/mohawk")
(commit commit)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "00y9fimcj851rk2770wqk61fac9pnxfnzca4fvsci57zw18i50m6"))
"08wppsv65yd0gdxy5zwq37yp6jmxakfz4a2yx5wwq2d222my786j")))) (patches
(build-system python-build-system) (search-patches "python-mohawk-pytest.patch"))))
(native-inputs (list python-mock python-nose)) (build-system pyproject-build-system)
(propagated-inputs (list python-six)) (arguments
(list #:test-flags #~(list "mohawk/tests.py")))
(native-inputs (list python-pytest python-setuptools-next))
(home-page "https://github.com/kumar303/mohawk") (home-page "https://github.com/kumar303/mohawk")
(synopsis "Library for Hawk HTTP authorization") (synopsis "Library for Hawk HTTP authorization")
(description (description
"Mohawk is an alternate Python implementation of the Hawk HTTP "Mohawk is an alternate Python implementation of the Hawk HTTP
authorization scheme.") authorization scheme.")
(license license:bsd-3))) (license license:bsd-3))))
(define-public python-msal (define-public python-msal
(package (package