depot/third_party/nixpkgs/pkgs/development/python-modules/yara-python/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

49 lines
830 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, yara
}:
buildPythonPackage rec {
pname = "yara-python";
version = "4.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "VirusTotal";
repo = "yara-python";
rev = "v${version}";
hash = "sha256-jNxYuIddMzANZoQ0p7BbRrX6ISpaCA7T6j+iS+FOocg=";
};
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 ];
};
}