diff options
| author | Thomas Kramer <thomas@f-si.org> | 2026-05-27 22:40:48 +0200 |
|---|---|---|
| committer | Gabriel Wicki <gabriel@erlikon.ch> | 2026-06-25 12:27:57 +0200 |
| commit | d292d2dd741d8a8ad5f523a41f7d322bb73be382 (patch) | |
| tree | 9fbdfa0b6c2f8cd83da260cb1768eb659d5a73bb /gnu/packages/security-token.scm | |
| parent | ae8d1fe250481b68fd2ac8b48cda5b76d95234b5 (diff) | |
gnu: Add python-nethsm.
* gnu/packages/security-token.scm (python-nethsm): New variable.
Signed-off-by: Gabriel Wicki <gabriel@erlikon.ch>
Diffstat (limited to 'gnu/packages/security-token.scm')
| -rw-r--r-- | gnu/packages/security-token.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index bd6b10e57fd..da2e75f2c65 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm | |||
| @@ -85,6 +85,7 @@ | |||
| 85 | #:use-module (gnu packages readline) | 85 | #:use-module (gnu packages readline) |
| 86 | #:use-module (gnu packages qt) | 86 | #:use-module (gnu packages qt) |
| 87 | #:use-module (gnu packages serialization) | 87 | #:use-module (gnu packages serialization) |
| 88 | #:use-module (gnu packages time) | ||
| 88 | #:use-module (gnu packages tls) | 89 | #:use-module (gnu packages tls) |
| 89 | #:use-module (gnu packages tex) | 90 | #:use-module (gnu packages tex) |
| 90 | #:use-module (gnu packages perl) | 91 | #:use-module (gnu packages perl) |
| @@ -546,6 +547,52 @@ and other operations. It includes a library and a command-line tool.") | |||
| 546 | ;; majority of files are licensed under bsd-2. | 547 | ;; majority of files are licensed under bsd-2. |
| 547 | (license license:bsd-2))) | 548 | (license license:bsd-2))) |
| 548 | 549 | ||
| 550 | (define-public python-nethsm | ||
| 551 | (package | ||
| 552 | (name "python-nethsm") | ||
| 553 | (version "2.1.1") | ||
| 554 | (source | ||
| 555 | (origin | ||
| 556 | (method git-fetch) | ||
| 557 | (uri (git-reference | ||
| 558 | (url "https://github.com/Nitrokey/nethsm-sdk-py") | ||
| 559 | (commit (string-append "v" version)))) | ||
| 560 | (file-name (git-file-name name version)) | ||
| 561 | (sha256 | ||
| 562 | (base32 "0v3jqz8dkwcrpp6h9zvm5wy9bpcbkd3b0ah23plv04k5qw5kgdfm")))) | ||
| 563 | (build-system pyproject-build-system) | ||
| 564 | (arguments | ||
| 565 | (list | ||
| 566 | #:test-flags | ||
| 567 | #~(list | ||
| 568 | ;; These tests need a running docker daemon. | ||
| 569 | "--ignore" "tests/test_nethsm_config.py" | ||
| 570 | "--ignore" "tests/test_nethsm_keys.py" | ||
| 571 | "--ignore" "tests/test_nethsm_namespaces.py" | ||
| 572 | "--ignore" "tests/test_nethsm_other.py" | ||
| 573 | "--ignore" "tests/test_nethsm_system.py" | ||
| 574 | "--ignore" "tests/test_nethsm_users.py") | ||
| 575 | #:phases | ||
| 576 | #~(modify-phases %standard-phases | ||
| 577 | ;; Remove test-only dependency on python-docker and python-podman | ||
| 578 | ;; (which is not packaged). These tests are disabled anyway. | ||
| 579 | (add-after 'unpack 'remove-unused-imports | ||
| 580 | (lambda _ | ||
| 581 | (substitute* "tests/utilities.py" | ||
| 582 | (("import (docker|podman).*") ""))))))) | ||
| 583 | (propagated-inputs (list python-certifi | ||
| 584 | python-cryptography | ||
| 585 | python-pycryptodome | ||
| 586 | python-dateutil | ||
| 587 | python-typing-extensions | ||
| 588 | python-urllib3)) | ||
| 589 | (native-inputs (list python-poetry-core python-pytest python-requests)) | ||
| 590 | (home-page "https://github.com/Nitrokey/nethsm-sdk-py") | ||
| 591 | (synopsis "SDK for NetHSM") | ||
| 592 | (description "Client-side Python library for managing Nitrokey | ||
| 593 | NetHSM @acronym{HSM, Hardware Security Modules}s.") | ||
| 594 | (license license:asl2.0))) | ||
| 595 | |||
| 549 | (define-public python-nkdfu | 596 | (define-public python-nkdfu |
| 550 | (package | 597 | (package |
| 551 | (name "python-nkdfu") | 598 | (name "python-nkdfu") |
