summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/yara-python
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-03-11 10:02:40 +0100
committerGitHub <noreply@github.com>2022-03-11 10:02:40 +0100
commitcd93dca29400ef8a477df385835faf2d5f767b87 (patch)
tree86f5bc9e7e8bacd20349ece1e4daf6569d5ff834 /pkgs/development/python-modules/yara-python
parent8b761016b7cb62d17d396b4820f401a49593f50e (diff)
python3Packages.yara-python: disable on older Python releases
Diffstat (limited to 'pkgs/development/python-modules/yara-python')
-rw-r--r--pkgs/development/python-modules/yara-python/default.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/yara-python/default.nix b/pkgs/development/python-modules/yara-python/default.nix
index ca64706aace0..8d5892979e1f 100644
--- a/pkgs/development/python-modules/yara-python/default.nix
+++ b/pkgs/development/python-modules/yara-python/default.nix
@@ -2,18 +2,22 @@
, 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}";
- sha256 = "sha256-jNxYuIddMzANZoQ0p7BbRrX6ISpaCA7T6j+iS+FOocg=";
+ hash = "sha256-jNxYuIddMzANZoQ0p7BbRrX6ISpaCA7T6j+iS+FOocg=";
};
buildInputs = [
@@ -28,9 +32,13 @@ buildPythonPackage rec {
"--dynamic-linking"
];
- pytestFlagsArray = [ "tests.py" ];
+ pytestFlagsArray = [
+ "tests.py"
+ ];
- pythonImportsCheck = [ "yara" ];
+ pythonImportsCheck = [
+ "yara"
+ ];
meta = with lib; {
description = "Python interface for YARA";