about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2023-09-10 00:52:03 +0200
committerPeder Bergebakken Sundt <pbsds@hotmail.com>2023-09-22 21:11:24 +0200
commitf8fd7deaabf2e8d8ff0b76a0d4e7afd9ac3e59d4 (patch)
tree48f5fa50964ae8d084a0d6ab4d4b2af736be5c26
parent3a2a8ad856768282d19855ec9c33903689a31075 (diff)
pynitrokey: switch to pypaBuildHook
-rw-r--r--pkgs/tools/security/pynitrokey/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/security/pynitrokey/default.nix b/pkgs/tools/security/pynitrokey/default.nix
index b9847171616f6..9c36ceb3c841e 100644
--- a/pkgs/tools/security/pynitrokey/default.nix
+++ b/pkgs/tools/security/pynitrokey/default.nix
@@ -11,7 +11,7 @@ with python3Packages;
 buildPythonApplication rec {
   pname = "pynitrokey";
   version = "0.4.39";
-  format = "flit";
+  format = "pyproject";
 
   src = fetchPypi {
     inherit pname version;
@@ -43,9 +43,13 @@ buildPythonApplication rec {
   ];
 
   nativeBuildInputs = [
+    flit-core
     pythonRelaxDepsHook
   ];
 
+  # FIXME: does pythonRelaxDepsHook not work for pypaBuildHook + flit-core?
+  pypaBuildFlags = [ "--skip-dependency-check" ];
+
   pythonRelaxDeps = [
     "click"
     "cryptography"