python3Packages.yara-python: init at 4.0.5

This commit is contained in:
Fabian Affolter 2021-03-28 11:42:46 +02:00
parent 2c8e88dabe
commit 36d4934c39
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, yara
}:
buildPythonPackage rec {
pname = "yara-python";
version = "4.0.5";
src = fetchFromGitHub {
owner = "VirusTotal";
repo = "yara-python";
rev = "v${version}";
sha256 = "1qd0aw5p48ay77hgj0hgzpvbmq1933mknk134aqdb32036rlc5sq";
};
buildInputs = [
yara
];
checkInputs = [
pytestCheckHook
];
setupPyBuildFlags = [
"--dynamic-linking"
];
pytestFlagsArray = [ "tests.py" ];
pythonImportsCheck = [ "yara" ];
meta = with lib; {
description = "Python interface for YARA";
homepage = "https://github.com/VirusTotal/yara-python";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -9107,6 +9107,8 @@ in {
Yapsy = callPackage ../development/python-modules/yapsy { };
yara-python = callPackage ../development/python-modules/yara-python { };
yarg = callPackage ../development/python-modules/yarg { };
yarl = callPackage ../development/python-modules/yarl { };