diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2025-10-30 09:19:58 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-30 13:24:09 +0000 |
| commit | 843af5ed32fad5ebf29ee26d2982b6c21843a668 (patch) | |
| tree | be2a8e9bfc9e2f7b1f9a1f538bfbc994ab52654d /gnu/packages/python-crypto.scm | |
| parent | be460d0ee3128d4020715bff67d08d650b8081e5 (diff) | |
gnu: Add python-oscrypto.
* gnu/packages/python-crypto.scm (python-oscrypto): New variable.
Change-Id: I1395e3ef753291ad9fb0887b7e38460ab708d7fa
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-crypto.scm')
| -rw-r--r-- | gnu/packages/python-crypto.scm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 2f78c1faa56..88d9b89a19f 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm | |||
| @@ -770,6 +770,50 @@ environments.") | |||
| 770 | (description "OMEMO cryptography library that was forked from python-axolotl.") | 770 | (description "OMEMO cryptography library that was forked from python-axolotl.") |
| 771 | (license license:gpl3))) | 771 | (license license:gpl3))) |
| 772 | 772 | ||
| 773 | (define-public python-oscrypto | ||
| 774 | (package | ||
| 775 | (name "python-oscrypto") | ||
| 776 | (version "1.3.0") | ||
| 777 | (source | ||
| 778 | (origin | ||
| 779 | (method git-fetch) | ||
| 780 | (uri (git-reference | ||
| 781 | (url "https://github.com/wbond/oscrypto/") | ||
| 782 | (commit version))) | ||
| 783 | (file-name (git-file-name name version)) | ||
| 784 | (sha256 | ||
| 785 | (base32 | ||
| 786 | "1v5wkmzcyiqy39db8j2dvkdrv2nlsc48556h73x4dzjwd6kg4q0a")))) | ||
| 787 | (build-system pyproject-build-system) | ||
| 788 | (arguments | ||
| 789 | (list | ||
| 790 | #:test-backend #~'custom | ||
| 791 | #:test-flags | ||
| 792 | #~(list "run.py" | ||
| 793 | (format #f "use_openssl=~a,~a" | ||
| 794 | (search-input-file %build-inputs "/lib/libcrypto.so") | ||
| 795 | (search-input-file %build-inputs "/lib/libssl.so")) | ||
| 796 | "skip_internet=true" | ||
| 797 | "tests") | ||
| 798 | #:phases | ||
| 799 | #~(modify-phases %standard-phases | ||
| 800 | (add-before 'check 'set-envs | ||
| 801 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 802 | (setenv | ||
| 803 | "SSL_CERT_FILE" | ||
| 804 | (search-input-file | ||
| 805 | inputs "/etc/ssl/certs/ca-certificates.crt"))))))) | ||
| 806 | (propagated-inputs (list python-asn1crypto)) | ||
| 807 | (native-inputs (list nss-certs-for-test openssl python-setuptools)) | ||
| 808 | (home-page "https://github.com/wbond/oscrypto/") | ||
| 809 | (synopsis "Compiler-free Python encryption library") | ||
| 810 | (description | ||
| 811 | "@code{Python-oscrypto} is a compilation-free encryption library which | ||
| 812 | integrates with the encryption library that is part of the operating system. | ||
| 813 | It supports TLS (SSL) sockets, key generation, encryption, decryption, | ||
| 814 | signing, verification and KDFs using the OS crypto libraries.") | ||
| 815 | (license license:expat))) | ||
| 816 | |||
| 773 | (define-public python-pyaes | 817 | (define-public python-pyaes |
| 774 | ;; XXX: Last updated in 2017. | 818 | ;; XXX: Last updated in 2017. |
| 775 | (package | 819 | (package |
