@@ -2,18 +2,22 @@
2, buildPythonPackage
2, buildPythonPackage
3, fetchFromGitHub
3, fetchFromGitHub
4, pytestCheckHook
4, pytestCheckHook
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";
14+ disabled = pythonOlder "3.7";
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=";
19 buildInputs = [
23 buildInputs = [
@@ -28,9 +32,13 @@ buildPythonPackage rec {
28 "--dynamic-linking"
32 "--dynamic-linking"
31− pytestFlagsArray = [ "tests.py" ];
35+ pytestFlagsArray = [
33− pythonImportsCheck = [ "yara" ];
39+ pythonImportsCheck = [
35 meta = with lib; {
43 meta = with lib; {
36 description = "Python interface for YARA";
44 description = "Python interface for YARA";