git.iko.soy/typeable/nixpkgs
on master help sign in
yarGen: don't depend on scandir

Scandir is python2 only since 24896293e40cecb2f22cc4db0a13c41697745049.

commitc21475e7e8aeaa38b13af380c64da59690056086 authorRobert Schütz <dev@schuetz-co.de> dateFri 23 Apr 2021, 08:05 (6 years ago) parent081c812
1 file changed+10−1
pkgs/tools/security/yarGen/default.nix+10−1
pkgs/tools/security/yarGen/default.nix+10−1
@@ -1,6 +1,7 @@
11{ lib
22, python3
33, fetchFromGitHub
4+, fetchpatch
45}:
56python3.pkgs.buildPythonApplication rec {
67 pname = "yarGen";
@@ -14,6 +15,15 @@ python3.pkgs.buildPythonApplication rec {
1415 sha256 = "6PJNAeeLAyUlZcIi0g57sO1Ex6atn7JhbK9kDbNrZ6A=";
1516 };
1617
18+ patches = [
19+ # https://github.com/Neo23x0/yarGen/pull/33
20+ (fetchpatch {
21+ name = "use-built-in-scandir.patch";
22+ url = "https://github.com/Neo23x0/yarGen/commit/cae14ac8efeb5536885792cae99d1d0f7fb6fde3.patch";
23+ sha256 = "0z6925r7n1iysld5c8li5nkm1dbxg8j7pn0626a4vic525vf8ndl";
24+ })
25+ ];
26+
1727 installPhase = ''
1828 runHook preInstall
1929
@@ -23,7 +33,6 @@ python3.pkgs.buildPythonApplication rec {
2333 '';
2434
2535 propagatedBuildInputs = with python3.pkgs; [
26− scandir
2736 pefile
2837 lxml
2938 ];