summaryrefslogtreecommitdiff
path: root/gnu/packages/python-crypto.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-06-22 13:45:43 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:35:43 +0100
commit6fc75849e4689317cc5958f40bb27c5bd47b173d (patch)
treeb848195145b497bf46d4c6b44d2c697f3ee08c05 /gnu/packages/python-crypto.scm
parent6f50f3ef3348147b6c31b9264a4a671f3f7d8b33 (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.scm20
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.")
448(define-public python-certifi 448(define-public python-certifi
449 (package 449 (package
450 (name "python-certifi") 450 (name "python-certifi")
451 (version "2025.6.15") 451 (version "2025.06.15")
452 (source 452 (source
453 (origin 453 (origin
454 (method url-fetch) 454 (method git-fetch) ; no tests in PyPI package
455 (uri (pypi-uri "certifi" version)) 455 (uri (git-reference
456 (url "https://github.com/certifi/python-certifi")
457 (commit version)))
458 (file-name (git-file-name name version))
456 (sha256 459 (sha256
457 (base32 "0frj2yizgxr1njx1dynyjsbqxwfi5gi17fr2ijxv3fwviddaliyp")) 460 (base32 "1yyy3c64xbwfg2b8hi1fd6vwh56fzc90jfy3czimv5i91gwrl7ba"))
458 (snippet #~(begin 461 (snippet #~(begin
459 (delete-file "certifi/cacert.pem") 462 (delete-file "certifi/cacert.pem")
460 (delete-file "certifi/core.py") 463 (delete-file "certifi/core.py")
@@ -485,10 +488,11 @@ def contents() -> str:
485 with open(where(), \"r\", encoding=\"ascii\") as data: 488 with open(where(), \"r\", encoding=\"ascii\") as data:
486 return data.read()"))))))) 489 return data.read()")))))))
487 (build-system pyproject-build-system) 490 (build-system pyproject-build-system)
488 (arguments 491 (native-inputs
489 (list 492 (list nss-certs-for-test
490 #:tests? #f)) ;no tests 493 python-pytest
491 (native-inputs (list python-setuptools python-wheel)) 494 python-setuptools
495 python-wheel))
492 (home-page "https://certifi.io/") 496 (home-page "https://certifi.io/")
493 (synopsis "Python CA certificate bundle") 497 (synopsis "Python CA certificate bundle")
494 (description 498 (description