diff options
| author | Tomas Ortin Fernandez (quanrong) <quanrong@mailbox.org> | 2026-07-17 11:28:37 +0200 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-07-24 09:07:12 +0200 |
| commit | c31d9c9d6a98f44f09b415c5fb313b342bd38057 (patch) | |
| tree | 651cfa1bc7f433cdd55f09ab70b2bb034ab333e4 /gnu/packages/python-crypto.scm | |
| parent | f47cb2d4e7a997f22d21f1d6465d8fc39008bdaf (diff) | |
gnu: Add python-pysequoia.
* gnu/packages/python-crypto.scm (python-pysequoia): New variable.
* gnu/packages/rust-crates.scm (lookup-cargo-inputs)
[python-pysequoia]: New entry.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/python-crypto.scm')
| -rw-r--r-- | gnu/packages/python-crypto.scm | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 9ca9224a7b8..4311d1787f9 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | ;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com> | 34 | ;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com> |
| 35 | ;;; Copyright © 2025 Nguyễn Gia Phong <cnx@loang.net> | 35 | ;;; Copyright © 2025 Nguyễn Gia Phong <cnx@loang.net> |
| 36 | ;;; Copyright © 2025 Adrien 'neox' Bourmault <neox@gnu.org> | 36 | ;;; Copyright © 2025 Adrien 'neox' Bourmault <neox@gnu.org> |
| 37 | ;;; Copyright © 2026 Tomás Ortín Fernández (quanrong) <quanrong@mailbox.org> | ||
| 37 | ;;; | 38 | ;;; |
| 38 | ;;; This file is part of GNU Guix. | 39 | ;;; This file is part of GNU Guix. |
| 39 | ;;; | 40 | ;;; |
| @@ -1372,6 +1373,60 @@ passwords. It can be used to implement two-factor (2FA) or multi-factor | |||
| 1372 | require users to log in.") | 1373 | require users to log in.") |
| 1373 | (license license:expat))) | 1374 | (license license:expat))) |
| 1374 | 1375 | ||
| 1376 | (define-public python-pysequoia | ||
| 1377 | (package | ||
| 1378 | (name "python-pysequoia") | ||
| 1379 | (version "0.1.34") | ||
| 1380 | (source | ||
| 1381 | (origin | ||
| 1382 | (method git-fetch) | ||
| 1383 | (uri (git-reference | ||
| 1384 | (url "https://github.com/wiktor-k/pysequoia") | ||
| 1385 | (commit (string-append "v" version)))) | ||
| 1386 | (file-name (git-file-name name version)) | ||
| 1387 | (sha256 | ||
| 1388 | (base32 "0nc22al57g9amvp9ylgn08hpf0rk9lx201b8w77acrbbvwbhi5lr")))) | ||
| 1389 | (build-system pyproject-build-system) | ||
| 1390 | (arguments | ||
| 1391 | (list | ||
| 1392 | #:imported-modules `(,@%cargo-build-system-modules | ||
| 1393 | ,@%pyproject-build-system-modules) | ||
| 1394 | #:modules '(((guix build cargo-build-system) #:prefix cargo:) | ||
| 1395 | (guix build pyproject-build-system) | ||
| 1396 | (guix build utils)) | ||
| 1397 | #:phases | ||
| 1398 | #~(modify-phases %standard-phases | ||
| 1399 | (add-after 'unpack 'prepare-cargo-build-system | ||
| 1400 | (lambda args | ||
| 1401 | (for-each | ||
| 1402 | (lambda (phase) | ||
| 1403 | (apply (assoc-ref cargo:%standard-phases phase) | ||
| 1404 | #:cargo-target #$(cargo-triplet) | ||
| 1405 | args)) | ||
| 1406 | '(unpack-rust-crates | ||
| 1407 | configure | ||
| 1408 | check-for-pregenerated-files | ||
| 1409 | patch-cargo-checksums)))) | ||
| 1410 | ;; The test suite is Rust-side only. There are no unit tests for | ||
| 1411 | ;; Python; the Python API has integration tests that require a | ||
| 1412 | ;; bespoke tool to be run (https://github.com/wiktor-k/tangler) | ||
| 1413 | (replace 'check | ||
| 1414 | (lambda* (#:key tests? #:allow-other-keys #:rest args) | ||
| 1415 | (when tests? | ||
| 1416 | (apply (assoc-ref cargo:%standard-phases 'check) args))))))) | ||
| 1417 | (native-inputs (append (list rust | ||
| 1418 | `(,rust "cargo")) | ||
| 1419 | (or (and=> (%current-target-system) | ||
| 1420 | (compose list make-rust-sysroot)) | ||
| 1421 | '()))) | ||
| 1422 | (inputs (cons* maturin | ||
| 1423 | (cargo-inputs 'python-pysequoia))) | ||
| 1424 | (home-page "https://github.com/wiktor-k/pysequoia") | ||
| 1425 | (synopsis "Provides OpenPGP facilities using Sequoia-PGP library") | ||
| 1426 | (description | ||
| 1427 | "This package provides @code{OpenPGP} facilities using Sequoia-PGP library.") | ||
| 1428 | (license license:asl2.0))) | ||
| 1429 | |||
| 1375 | ;; XXX: This project was archived by the owner on Apr 20, 2025. It is now | 1430 | ;; XXX: This project was archived by the owner on Apr 20, 2025. It is now |
| 1376 | ;; read-only. Consider to remove when starts failing to build and nothing | 1431 | ;; read-only. Consider to remove when starts failing to build and nothing |
| 1377 | ;; depends on it. | 1432 | ;; depends on it. |
