mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 12:07:47 +03:00
python3Packages.yara-python: disable on older Python releases
This commit is contained in:
parent
8b761016b7
commit
cd93dca294
@ -2,18 +2,22 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, yara
|
, yara
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "yara-python";
|
pname = "yara-python";
|
||||||
version = "4.2.0";
|
version = "4.2.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "VirusTotal";
|
owner = "VirusTotal";
|
||||||
repo = "yara-python";
|
repo = "yara-python";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-jNxYuIddMzANZoQ0p7BbRrX6ISpaCA7T6j+iS+FOocg=";
|
hash = "sha256-jNxYuIddMzANZoQ0p7BbRrX6ISpaCA7T6j+iS+FOocg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -28,9 +32,13 @@ buildPythonPackage rec {
|
|||||||
"--dynamic-linking"
|
"--dynamic-linking"
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [ "tests.py" ];
|
pytestFlagsArray = [
|
||||||
|
"tests.py"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "yara" ];
|
pythonImportsCheck = [
|
||||||
|
"yara"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python interface for YARA";
|
description = "Python interface for YARA";
|
||||||
|
Loading…
Reference in New Issue
Block a user