summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-01 00:48:35 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-01 09:09:43 +0100
commit7784aee7bd9d940c9e4f759b229e0751845e1fe6 (patch)
treed6876fa1a1f2b73b0f764b6f6203e4ae538bf332 /gnu/packages/python-check.scm
parenta21e5b888e42cbacdc11f064b279f78ec33454c8 (diff)
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>
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm41
1 files changed, 22 insertions, 19 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 72d4775abf6..3fb23f7c939 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -94,27 +94,30 @@
(version "0.7.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "aioresponses" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pnuckowski/aioresponses")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "16p8mdyfirddrsay62ji7rwcrqmmzxzf2isdbfm9cj5p338rbr42"))))
- (build-system python-build-system)
+ (base32 "0fcm1rl1h91c2ca446kl5r2q229a8cfad2xn9gmsmdvn29wm35kc"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke
- "pytest" "-vv" "tests" "-k"
- (string-append
- ;; These tests require network access.
- "not test_address_as_instance_of_url_combined_with_pass_through "
- "and not test_pass_through_with_origin_params"))))))))
- (native-inputs
- (list python-pbr python-ddt python-pytest))
- (propagated-inputs
- (list python-aiohttp python-setuptools))
+ (list
+ #:test-flags
+ #~(list
+ "tests" "-k"
+ (string-append
+ ;; These tests require network access.
+ "not test_address_as_instance_of_url_combined_with_pass_through "
+ "and not test_pass_through_with_origin_params"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'set-pbr-version
+ (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")
(synopsis "Mock out requests made by ClientSession from aiohttp package")
(description