pynitrokey: add update script

This commit is contained in:
Nicolas Benes
2023-06-12 12:32:32 +02:00
parent 2423529216
commit 3da8671d44
+10 -2
View File
@@ -1,4 +1,10 @@
{ lib, python3Packages, fetchPypi, nrfutil, libnitrokey }:
{ lib
, python3Packages
, fetchPypi
, nrfutil
, libnitrokey
, nix-update-script
}:
with python3Packages;
@@ -45,7 +51,7 @@ buildPythonApplication rec {
"typing_extensions"
];
# libnitrokey is not propagated to users of pynitrokey
# 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 ]}"
@@ -56,6 +62,8 @@ buildPythonApplication rec {
pythonImportsCheck = [ "pynitrokey" ];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Python client for Nitrokey devices";
homepage = "https://github.com/Nitrokey/pynitrokey";