pynitrokey: add update script
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user