gnu: python-aioresponses: Switch to pyproject.

* gnu/packages/python-check.scm (python-aioresponses):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-flags>: Set hem.
<#:phases>: Add phase 'set-pbr-version.  Remove 'check phase replacement.
[native-inputs]: Add python-setuptools.

Change-Id: I08c8e9025a50f361f5455782b0a645a92876a1ff
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-10-01 00:48:35 +02:00 committed by Sharlatan Hellseher
parent a21e5b888e
commit 7784aee7bd
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -94,27 +94,30 @@
(version "0.7.2") (version "0.7.2")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "aioresponses" version)) (uri (git-reference
(url "https://github.com/pnuckowski/aioresponses")
(commit version)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 "16p8mdyfirddrsay62ji7rwcrqmmzxzf2isdbfm9cj5p338rbr42")))) (base32 "0fcm1rl1h91c2ca446kl5r2q229a8cfad2xn9gmsmdvn29wm35kc"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:test-flags
(replace 'check #~(list
(lambda* (#:key tests? #:allow-other-keys) "tests" "-k"
(when tests?
(invoke
"pytest" "-vv" "tests" "-k"
(string-append (string-append
;; These tests require network access. ;; These tests require network access.
"not test_address_as_instance_of_url_combined_with_pass_through " "not test_address_as_instance_of_url_combined_with_pass_through "
"and not test_pass_through_with_origin_params")))))))) "and not test_pass_through_with_origin_params"))
(native-inputs #:phases
(list python-pbr python-ddt python-pytest)) #~(modify-phases %standard-phases
(propagated-inputs (add-before 'build 'set-pbr-version
(list python-aiohttp python-setuptools)) (lambda _
(setenv "PBR_VERSION" #$version))))))
(native-inputs (list python-pbr python-ddt python-pytest python-setuptools))
(propagated-inputs (list python-aiohttp))
(home-page "https://github.com/pnuckowski/aioresponses") (home-page "https://github.com/pnuckowski/aioresponses")
(synopsis "Mock out requests made by ClientSession from aiohttp package") (synopsis "Mock out requests made by ClientSession from aiohttp package")
(description (description