From 3da8671d44c7cc3cc9e44588ce31b1f20afa3a5e Mon Sep 17 00:00:00 2001 From: Nicolas Benes Date: Mon, 12 Jun 2023 12:32:32 +0200 Subject: [PATCH] pynitrokey: add update script --- pkgs/tools/security/pynitrokey/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/pynitrokey/default.nix b/pkgs/tools/security/pynitrokey/default.nix index 04b4b8e7b85f..fe51760f5629 100644 --- a/pkgs/tools/security/pynitrokey/default.nix +++ b/pkgs/tools/security/pynitrokey/default.nix @@ -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";