From 34f9c7ae4fe62935c8480b30ea899d0aee27738b Mon Sep 17 00:00:00 2001 From: Nicolas Benes Date: Tue, 5 Aug 2025 23:10:22 +0200 Subject: [PATCH] python3Packages.pynitrokey: 0.9.3 -> 0.10.0 https://github.com/Nitrokey/pynitrokey/releases/tag/v0.10.0 --- .../python-modules/pynitrokey/default.nix | 39 +++++++------------ 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/pkgs/development/python-modules/pynitrokey/default.nix b/pkgs/development/python-modules/pynitrokey/default.nix index 962589b47a4b..187d08594334 100644 --- a/pkgs/development/python-modules/pynitrokey/default.nix +++ b/pkgs/development/python-modules/pynitrokey/default.nix @@ -4,33 +4,27 @@ fetchPypi, installShellFiles, libnitrokey, - flit-core, - certifi, + poetry-core, cffi, click, cryptography, - ecdsa, fido2, + hidapi, intelhex, nkdfu, - python-dateutil, pyusb, requests, tqdm, tlv8, - typing-extensions, - click-aliases, semver, nethsm, - importlib-metadata, nitrokey, pyscard, - asn1crypto, }: let pname = "pynitrokey"; - version = "0.9.3"; + version = "0.10.0"; mainProgram = "nitropy"; in @@ -40,49 +34,42 @@ buildPythonPackage { src = fetchPypi { inherit pname version; - hash = "sha256-nZBgKJfRIte/KyHqdBLe6spudJW7livyA9OvdZ4/q4o="; + hash = "sha256-Kr6VtBADLvXUva7csbsHujGzBfRG1atJLF7qbIWmToM="; }; nativeBuildInputs = [ installShellFiles ]; - build-system = [ flit-core ]; + build-system = [ poetry-core ]; dependencies = [ - certifi cffi click cryptography - ecdsa fido2 + hidapi intelhex nkdfu - python-dateutil + nitrokey pyusb requests tqdm tlv8 - typing-extensions - click-aliases semver nethsm - importlib-metadata - nitrokey - pyscard - asn1crypto ]; - pythonRelaxDeps = true; + optional-dependencies = { + pcsc = [ + pyscard + ]; + }; - # pythonRelaxDepsHook runs in postBuild so cannot be used - pypaBuildFlags = [ "--skip-dependency-check" ]; + pythonRelaxDeps = true; # libnitrokey is not propagated to users of the pynitrokey Python package. # It is only usable from the wrapped bin/nitropy makeWrapperArgs = [ "--set LIBNK_PATH ${lib.makeLibraryPath [ libnitrokey ]}" ]; - # no tests - doCheck = false; - pythonImportsCheck = [ "pynitrokey" ]; postInstall = ''