diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-06-22 13:45:43 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:35:43 +0100 |
| commit | 6fc75849e4689317cc5958f40bb27c5bd47b173d (patch) | |
| tree | b848195145b497bf46d4c6b44d2c697f3ee08c05 /gnu/packages/python-crypto.scm | |
| parent | 6f50f3ef3348147b6c31b9264a4a671f3f7d8b33 (diff) | |
gnu: python-certifi: Enable tests.
* gnu/packages/python-crypto.scm (python-certifi) [version]: Adjust it to
match Git tag.
[source]: Switch to git-fetch containing tests.
[arguments] <tests?>: Enable them.
[native-inputs]: Add nss-certs-for-test and python-pytest.
Change-Id: Iaaf175c4de5baa08232ada9583c083fd2bc017ef
Diffstat (limited to 'gnu/packages/python-crypto.scm')
| -rw-r--r-- | gnu/packages/python-crypto.scm | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index abb9ed6e8c0..a24442de63e 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -448,13 +448,16 @@ for example, for recording or replaying web content.") (define-public python-certifi (package (name "python-certifi") - (version "2025.6.15") + (version "2025.06.15") (source (origin - (method url-fetch) - (uri (pypi-uri "certifi" version)) + (method git-fetch) ; no tests in PyPI package + (uri (git-reference + (url "https://github.com/certifi/python-certifi") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0frj2yizgxr1njx1dynyjsbqxwfi5gi17fr2ijxv3fwviddaliyp")) + (base32 "1yyy3c64xbwfg2b8hi1fd6vwh56fzc90jfy3czimv5i91gwrl7ba")) (snippet #~(begin (delete-file "certifi/cacert.pem") (delete-file "certifi/core.py") @@ -485,10 +488,11 @@ def contents() -> str: with open(where(), \"r\", encoding=\"ascii\") as data: return data.read()"))))))) (build-system pyproject-build-system) - (arguments - (list - #:tests? #f)) ;no tests - (native-inputs (list python-setuptools python-wheel)) + (native-inputs + (list nss-certs-for-test + python-pytest + python-setuptools + python-wheel)) (home-page "https://certifi.io/") (synopsis "Python CA certificate bundle") (description |
