python3Packages.pynitrokey: 0.9.3 -> 0.10.0

https://github.com/Nitrokey/pynitrokey/releases/tag/v0.10.0

Changed files
+13 -26
pkgs
development
python-modules
pynitrokey
+13 -26
pkgs/development/python-modules/pynitrokey/default.nix
···
fetchPypi,
installShellFiles,
libnitrokey,
-
flit-core,
-
certifi,
cffi,
click,
cryptography,
-
ecdsa,
fido2,
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";
mainProgram = "nitropy";
in
···
src = fetchPypi {
inherit pname version;
-
hash = "sha256-nZBgKJfRIte/KyHqdBLe6spudJW7livyA9OvdZ4/q4o=";
};
nativeBuildInputs = [ installShellFiles ];
-
build-system = [ flit-core ];
dependencies = [
-
certifi
cffi
click
cryptography
-
ecdsa
fido2
intelhex
nkdfu
-
python-dateutil
pyusb
requests
tqdm
tlv8
-
typing-extensions
-
click-aliases
semver
nethsm
-
importlib-metadata
-
nitrokey
-
pyscard
-
asn1crypto
];
pythonRelaxDeps = true;
-
# pythonRelaxDepsHook runs in postBuild so cannot be used
-
pypaBuildFlags = [ "--skip-dependency-check" ];
-
# 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" ];
···
fetchPypi,
installShellFiles,
libnitrokey,
+
poetry-core,
cffi,
click,
cryptography,
fido2,
+
hidapi,
intelhex,
nkdfu,
pyusb,
requests,
tqdm,
tlv8,
semver,
nethsm,
nitrokey,
pyscard,
}:
let
pname = "pynitrokey";
+
version = "0.10.0";
mainProgram = "nitropy";
in
···
src = fetchPypi {
inherit pname version;
+
hash = "sha256-Kr6VtBADLvXUva7csbsHujGzBfRG1atJLF7qbIWmToM=";
};
nativeBuildInputs = [ installShellFiles ];
+
build-system = [ poetry-core ];
dependencies = [
cffi
click
cryptography
fido2
+
hidapi
intelhex
nkdfu
+
nitrokey
pyusb
requests
tqdm
tlv8
semver
nethsm
];
+
optional-dependencies = {
+
pcsc = [
+
pyscard
+
];
+
};
+
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 ]}" ];
pythonImportsCheck = [ "pynitrokey" ];