@@ -2,18 +2,22 @@
22, buildPythonPackage
33, fetchFromGitHub
44, pytestCheckHook
5+, pythonOlder
56, yara
67}:
78
89buildPythonPackage rec {
910 pname = "yara-python";
10− version = "4.1.3";
11+ 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-lOP+OVnMgpP8S+Q3jGRNEAFXAohXgX5Nvl+l4EK5ebs=";
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";