summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-11-29 23:33:43 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-04 21:03:15 +0000
commit2a74ea8a284008cfbc086584f46ab637e58feb9a (patch)
tree1138034bc22cf8625ebbfc877f7ff538af0f4a67 /gnu/packages
parent40a04ac1150313ec3e7976fbe738d6d91192fedd (diff)
gnu: python-querystring-parser: Switch to pyproject.
* gnu/packages/python-web.scm (python-querystring-parser): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Run guix style. [native-inputs]: Add python-setuptools. Change-Id: Ifa6df64302fdc4d6b287194084b5399e3570d557 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-web.scm41
1 files changed, 23 insertions, 18 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 2cabd2299c4..f68bfbbd826 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5223,25 +5223,30 @@ can utilise asyncio, uvloop, or trio worker types.")
(package
(name "python-querystring-parser")
(version "1.2.4")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "querystring_parser" version))
- (sha256
- (base32
- "0qlar8a0wa003hm2z6wcpb625r6vjj0a70rsni9h8lz0zwfcwkv4"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/bernii/querystring-parser")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "15n89bf1x9dgp1vi697pa238nvn0vbqp3ghf0xrcyqqa9gn1l6fb"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda _
- ;; XXX FIXME: This test is broken with Python 3.7:
- ;; https://github.com/bernii/querystring-parser/issues/35
- (substitute* "querystring_parser/tests.py"
- (("self\\.assertEqual\\(self\\.knownValuesNormalized, result\\)")
- "True"))
- (invoke "python" "querystring_parser/tests.py"))))))
- (propagated-inputs
- (list python-six))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ ;; XXX FIXME: This test is broken with Python 3.7:
+ ;; https://github.com/bernii/querystring-parser/issues/35
+ (substitute* "querystring_parser/tests.py"
+ (("self\\.assertEqual\\(self\\.knownValuesNormalized, result\\)")
+ "True"))
+ (invoke "python" "querystring_parser/tests.py"))))))
+ (native-inputs (list python-setuptools))
+ (propagated-inputs (list python-six))
(home-page "https://github.com/bernii/querystring-parser")
(synopsis "QueryString parser that correctly handles nested dictionaries")
(description