git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.yara-python: disable on older Python releases
commitcd93dca29400ef8a477df385835faf2d5f767b87 authorFabian Affolter <mail@fabian-affolter.ch> dateFri 11 Mar 2022, 10:02 (5 years ago) parent8b76101
1 file changed+11−3
pkgs/development/python-modules/yara-python/default.nix+11−3
pkgs/development/python-modules/yara-python/default.nix+11−3
@@ -2,18 +2,22 @@
22, buildPythonPackage
33, fetchFromGitHub
44, pytestCheckHook
5+, pythonOlder
56, yara
67}:
78
89buildPythonPackage rec {
910 pname = "yara-python";
1011 version = "4.2.0";
12+ format = "setuptools";
13+
14+ disabled = pythonOlder "3.7";
1115
1216 src = fetchFromGitHub {
1317 owner = "VirusTotal";
1418 repo = "yara-python";
1519 rev = "v${version}";
16− sha256 = "sha256-jNxYuIddMzANZoQ0p7BbRrX6ISpaCA7T6j+iS+FOocg=";
20+ hash = "sha256-jNxYuIddMzANZoQ0p7BbRrX6ISpaCA7T6j+iS+FOocg=";
1721 };
1822
1923 buildInputs = [
@@ -28,9 +32,13 @@ buildPythonPackage rec {
2832 "--dynamic-linking"
2933 ];
3034
31− pytestFlagsArray = [ "tests.py" ];
35+ pytestFlagsArray = [
36+ "tests.py"
37+ ];
3238
33− pythonImportsCheck = [ "yara" ];
39+ pythonImportsCheck = [
40+ "yara"
41+ ];
3442
3543 meta = with lib; {
3644 description = "Python interface for YARA";