diff options
| author | Nicolas Benes <nbenes.gh@xandea.de> | 2023-06-12 12:32:32 +0200 |
|---|---|---|
| committer | Nicolas Benes <nbenes.gh@xandea.de> | 2023-06-14 17:45:08 +0200 |
| commit | 3f03c3a4a41926b0d27f13275083a73511958960 (patch) | |
| tree | 37627d941085f4827f4caf4f01c0b4e28caa6fb9 | |
| parent | python3Packages.click-aliases: init at 1.0.1 (diff) | |
| download | nixpkgs-3f03c3a4a41926b0d27f13275083a73511958960.tar.gz | |
pynitrokey: add update script
(cherry picked from commit 3da8671d44c7cc3cc9e44588ce31b1f20afa3a5e)
| -rw-r--r-- | pkgs/tools/security/pynitrokey/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/security/pynitrokey/default.nix b/pkgs/tools/security/pynitrokey/default.nix index 6727101d3fe7..fe51760f5629 100644 --- a/pkgs/tools/security/pynitrokey/default.nix +++ b/pkgs/tools/security/pynitrokey/default.nix @@ -1,4 +1,10 @@ -{ python3Packages, lib, 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"; |
