python3Packages.pynitrokey: 0.9.3 -> 0.10.0

https://github.com/Nitrokey/pynitrokey/releases/tag/v0.10.0
This commit is contained in:
Nicolas Benes
2025-08-09 19:04:54 +02:00
committed by Martin Weinelt
parent 129eb9eb80
commit 34f9c7ae4f
@@ -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 = ''