diff options
| author | Josselin Poiret <dev@jpoiret.xyz> | 2024-05-16 11:24:23 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:45:03 +0200 |
| commit | e312bce54340022a1e55dee55b8a46b3b0dfb908 (patch) | |
| tree | 8850f0d2fb6231ab261ac29db9278f403cecc406 /gnu/packages/python-crypto.scm | |
| parent | a0d74866abddd1f90cb073d7a59acd74f9df0063 (diff) | |
gnu: python-certifi: Ungraft.
* gnu/packages/python-crypto.scm (python-certifi): Ungraft and apply source snippet
directly.
(python-certifi/fixed): Remove variable.
Change-Id: I6778ebcc3ef23dab1776d3876b9179d332a126e5
Diffstat (limited to 'gnu/packages/python-crypto.scm')
| -rw-r--r-- | gnu/packages/python-crypto.scm | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 86a826b7ed3..3a7f53abee0 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm | |||
| @@ -472,27 +472,12 @@ for example, for recording or replaying web content.") | |||
| 472 | (package | 472 | (package |
| 473 | (name "python-certifi") | 473 | (name "python-certifi") |
| 474 | (version "2022.6.15") | 474 | (version "2022.6.15") |
| 475 | (replacement python-certifi/fixed) | ||
| 476 | (source (origin | 475 | (source (origin |
| 477 | (method url-fetch) | 476 | (method url-fetch) |
| 478 | (uri (pypi-uri "certifi" version)) | 477 | (uri (pypi-uri "certifi" version)) |
| 479 | (sha256 | 478 | (sha256 |
| 480 | (base32 | 479 | (base32 |
| 481 | "03c2l11lgljx0kz17cvdc4hlc3p1594ajdih9zq0a4dig285mj44")))) | 480 | "03c2l11lgljx0kz17cvdc4hlc3p1594ajdih9zq0a4dig285mj44")) |
| 482 | (build-system python-build-system) | ||
| 483 | (arguments '(#:tests? #f)) ;no tests | ||
| 484 | (home-page "https://certifi.io/") | ||
| 485 | (synopsis "Python CA certificate bundle") | ||
| 486 | (description | ||
| 487 | "Certifi is a Python library that contains a CA certificate bundle, which | ||
| 488 | is used by the Requests library to verify HTTPS requests.") | ||
| 489 | (license license:asl2.0))) | ||
| 490 | |||
| 491 | (define python-certifi/fixed | ||
| 492 | (package | ||
| 493 | (inherit python-certifi) | ||
| 494 | (source (origin | ||
| 495 | (inherit (package-source python-certifi)) | ||
| 496 | (snippet | 481 | (snippet |
| 497 | #~(begin | 482 | #~(begin |
| 498 | (delete-file "certifi/cacert.pem") | 483 | (delete-file "certifi/cacert.pem") |
| @@ -521,7 +506,15 @@ def where() -> str: | |||
| 521 | 506 | ||
| 522 | def contents() -> str: | 507 | def contents() -> str: |
| 523 | with open(where(), \"r\", encoding=\"ascii\") as data: | 508 | with open(where(), \"r\", encoding=\"ascii\") as data: |
| 524 | return data.read()"))))))))) | 509 | return data.read()"))))))) |
| 510 | (build-system python-build-system) | ||
| 511 | (arguments '(#:tests? #f)) ;no tests | ||
| 512 | (home-page "https://certifi.io/") | ||
| 513 | (synopsis "Python CA certificate bundle") | ||
| 514 | (description | ||
| 515 | "Certifi is a Python library that contains a CA certificate bundle, which | ||
| 516 | is used by the Requests library to verify HTTPS requests.") | ||
| 517 | (license license:asl2.0))) | ||
| 525 | 518 | ||
| 526 | (define-public python-cryptography-vectors | 519 | (define-public python-cryptography-vectors |
| 527 | (package | 520 | (package |
