git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.yara-python: disable on older Python releases
cd93dcaFabian Affolter
pkgs/development/python-modules/yara-python/default.nix+11−3
@@ -2,18 +2,22 @@
2, buildPythonPackage
2, buildPythonPackage
3, fetchFromGitHub
3, fetchFromGitHub
4, pytestCheckHook
4, pytestCheckHook
5+, pythonOlder
5, yara
6, yara
6}:
7}:
7
8
8buildPythonPackage rec {
9buildPythonPackage rec {
9 pname = "yara-python";
10 pname = "yara-python";
10 version = "4.2.0";
11 version = "4.2.0";
12+ format = "setuptools";
13+
14+ disabled = pythonOlder "3.7";
11
15
12 src = fetchFromGitHub {
16 src = fetchFromGitHub {
13 owner = "VirusTotal";
17 owner = "VirusTotal";
14 repo = "yara-python";
18 repo = "yara-python";
15 rev = "v${version}";
19 rev = "v${version}";
16− sha256 = "sha256-jNxYuIddMzANZoQ0p7BbRrX6ISpaCA7T6j+iS+FOocg=";
20+ hash = "sha256-jNxYuIddMzANZoQ0p7BbRrX6ISpaCA7T6j+iS+FOocg=";
17 };
21 };
18
22
19 buildInputs = [
23 buildInputs = [
@@ -28,9 +32,13 @@ buildPythonPackage rec {
28 "--dynamic-linking"
32 "--dynamic-linking"
29 ];
33 ];
30
34
31− pytestFlagsArray = [ "tests.py" ];
35+ pytestFlagsArray = [
36+ "tests.py"
37+ ];
32
38
33− pythonImportsCheck = [ "yara" ];
39+ pythonImportsCheck = [
40+ "yara"
41+ ];
34
42
35 meta = with lib; {
43 meta = with lib; {
36 description = "Python interface for YARA";
44 description = "Python interface for YARA";