depot/third_party/nixpkgs/pkgs/development/python-modules/yara-python/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

41 lines
748 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, yara
}:
buildPythonPackage rec {
pname = "yara-python";
version = "4.1.3";
src = fetchFromGitHub {
owner = "VirusTotal";
repo = "yara-python";
rev = "v${version}";
sha256 = "sha256-lOP+OVnMgpP8S+Q3jGRNEAFXAohXgX5Nvl+l4EK5ebs=";
};
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 ];
};
}