diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-01 00:54:56 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-01 09:09:44 +0100 |
| commit | 2f29f090443ad5b058cce31c93660c42eb4f3886 (patch) | |
| tree | a66d636d45ecd747bb8854a843b751ad8b4009e4 /gnu/packages/python-check.scm | |
| parent | cf3abcd0960135e20a9b33f67f59a04a2d55e0f7 (diff) | |
gnu: python-httmock: Switch to pyproject.
* gnu/packages/python-check.scm (python-httmock):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Enable tests with <#:test-backend, #:test-flags>.
[native-inputs]: Add python-setuptools.
Change-Id: Ied533d486455cf6fc4f5d699d681632831b99be6
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 89ee9a8c65a..a8f94bf3a94 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -965,17 +965,21 @@ modules are patched within the contexts exposed.") (name "python-httmock") (version "1.3.0") (source - (origin - (method url-fetch) - (uri (pypi-uri "httmock" version)) - (sha256 - (base32 - "1zj1fcm0n6f0wr9mr0hmlqz9430fnr5cdwd5jkcvq9j44bnsrfz0")))) - (build-system python-build-system) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/patrys/httmock") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dy7pjq4gz476jcnbbpzk8w8qxr9l8wwgw9x2c7lf6fzsgnf404q")))) + (build-system pyproject-build-system) (arguments - `(#:tests? #f)); no tests - (propagated-inputs - (list python-requests)) + (list + #:test-backend #~'custom + #:test-flags #~(list "tests.py"))) + (native-inputs (list python-setuptools)) + (propagated-inputs (list python-requests)) (home-page "https://github.com/patrys/httmock") (synopsis "Mocking library for requests") (description "This package provides a library for replying fake data to |
