diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-04-23 08:05:16 +0200 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-04-22 23:32:02 -0700 |
commit | c21475e7e8aeaa38b13af380c64da59690056086 (patch) | |
tree | af1c7131fc6473fa7708e69370c8ca8130dde284 /pkgs/tools/security/yarGen | |
parent | 081c81209f9602d1ce5153ae175ad5d707195ac7 (diff) |
yarGen: don't depend on scandir
Scandir is python2 only since 24896293e40cecb2f22cc4db0a13c41697745049.
Diffstat (limited to 'pkgs/tools/security/yarGen')
-rw-r--r-- | pkgs/tools/security/yarGen/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/tools/security/yarGen/default.nix b/pkgs/tools/security/yarGen/default.nix index e00dc5f1ddba4..1cbf736bd2666 100644 --- a/pkgs/tools/security/yarGen/default.nix +++ b/pkgs/tools/security/yarGen/default.nix @@ -1,6 +1,7 @@ { lib , python3 , fetchFromGitHub +, fetchpatch }: python3.pkgs.buildPythonApplication rec { pname = "yarGen"; @@ -14,6 +15,15 @@ python3.pkgs.buildPythonApplication rec { sha256 = "6PJNAeeLAyUlZcIi0g57sO1Ex6atn7JhbK9kDbNrZ6A="; }; + patches = [ + # https://github.com/Neo23x0/yarGen/pull/33 + (fetchpatch { + name = "use-built-in-scandir.patch"; + url = "https://github.com/Neo23x0/yarGen/commit/cae14ac8efeb5536885792cae99d1d0f7fb6fde3.patch"; + sha256 = "0z6925r7n1iysld5c8li5nkm1dbxg8j7pn0626a4vic525vf8ndl"; + }) + ]; + installPhase = '' runHook preInstall @@ -23,7 +33,6 @@ python3.pkgs.buildPythonApplication rec { ''; propagatedBuildInputs = with python3.pkgs; [ - scandir pefile lxml ]; |