mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
c21475e7e8
Scandir is python2 only since 24896293e4
.
47 lines
1016 B
Nix
47 lines
1016 B
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
}:
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "yarGen";
|
|
version = "0.23.4";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Neo23x0";
|
|
repo = "yarGen";
|
|
rev = version;
|
|
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
|
|
|
|
install -Dt "$out/bin" yarGen.py
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pefile
|
|
lxml
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A generator for YARA rules";
|
|
homepage = "https://github.com/Neo23x0/yarGen";
|
|
license = licenses.bsd3;
|
|
maintainers = teams.determinatesystems.members;
|
|
};
|
|
}
|