about summary refs log tree commit diff
path: root/pkgs/misc/flashfocus
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2023-01-21 17:57:51 -0800
committerRobert Schütz <nix@dotlambda.de>2023-01-21 17:57:51 -0800
commite96fe2271db17374201c2a9c1d4ca2c86e8f04f7 (patch)
tree0bff177f4bebd81b56d2e45c53f54119c11b52fc /pkgs/misc/flashfocus
parent786f0f2fcb27bc3795df5c300d7c0641b62c0df6 (diff)
downloadnixlib-e96fe2271db17374201c2a9c1d4ca2c86e8f04f7.tar
nixlib-e96fe2271db17374201c2a9c1d4ca2c86e8f04f7.tar.gz
nixlib-e96fe2271db17374201c2a9c1d4ca2c86e8f04f7.tar.bz2
nixlib-e96fe2271db17374201c2a9c1d4ca2c86e8f04f7.tar.lz
nixlib-e96fe2271db17374201c2a9c1d4ca2c86e8f04f7.tar.xz
nixlib-e96fe2271db17374201c2a9c1d4ca2c86e8f04f7.tar.zst
nixlib-e96fe2271db17374201c2a9c1d4ca2c86e8f04f7.zip
flashfocus: use pythonRelaxDepsHook
Diffstat (limited to 'pkgs/misc/flashfocus')
-rw-r--r--pkgs/misc/flashfocus/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/misc/flashfocus/default.nix b/pkgs/misc/flashfocus/default.nix
index 5f6df66dd422..e43dc00ba277 100644
--- a/pkgs/misc/flashfocus/default.nix
+++ b/pkgs/misc/flashfocus/default.nix
@@ -10,15 +10,17 @@ python3.pkgs.buildPythonApplication rec {
   };
 
   postPatch = ''
-    substituteInPlace setup.py \
-      --replace "pyyaml>=5.1,<6.0" "pyyaml>=5.1"
-
     substituteInPlace bin/nc_flash_window \
       --replace "nc" "${lib.getExe netcat-openbsd}"
   '';
 
   nativeBuildInputs = with python3.pkgs; [
-    pytest-runner
+    pythonRelaxDepsHook
+  ];
+
+  pythonRelaxDeps = [
+    "pyyaml"
+    "xcffib"
   ];
 
   propagatedBuildInputs = with python3.pkgs; [