Loading pkgs/development/python-modules/androguard/default.nix +3 −9 Original line number Diff line number Diff line Loading @@ -16,10 +16,7 @@ pyqt5, pyperclip, pytestCheckHook, mock, python-magic, codecov, coverage, qt5, # This is usually used as a library, and it'd be a shame to force the GUI # libraries to the closure if GUI is not desired. Loading Loading @@ -73,9 +70,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook codecov coverage mock pyperclip pyqt5 python-magic Loading @@ -88,10 +82,10 @@ buildPythonPackage rec { makeWrapperArgs+=("''${qtWrapperArgs[@]}") ''; meta = with lib; { meta = { description = "Tool and Python library to interact with Android Files"; homepage = "https://github.com/androguard/androguard"; license = licenses.asl20; maintainers = with maintainers; [ pmiddend ]; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ pmiddend ]; }; } pkgs/development/python-modules/androguard/fix-tests.patch +15 −2 Original line number Diff line number Diff line diff --git a/tests/dataflow_test.py b/tests/dataflow_test.py index e9ac3cdb..edef8200 100644 --- a/tests/dataflow_test.py +++ b/tests/dataflow_test.py @@ -5,7 +5,7 @@ import sys sys.path.append('.') import collections -import mock +from unittest import mock import unittest from androguard.decompiler.dad import dataflow from androguard.decompiler.dad import graph diff --git a/tests/test_types.py b/tests/test_types.py index 127dfc20eb..f1c89f0712 100644 index 127dfc20..f1c89f07 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -182,7 +182,7 @@ @@ -182,7 +182,7 @@ class TypesTest(unittest.TestCase): for i in filter(lambda x: 'const' in x.get_name(), method.get_instructions()): i.show(0) # ins should only have one literal Loading Loading
pkgs/development/python-modules/androguard/default.nix +3 −9 Original line number Diff line number Diff line Loading @@ -16,10 +16,7 @@ pyqt5, pyperclip, pytestCheckHook, mock, python-magic, codecov, coverage, qt5, # This is usually used as a library, and it'd be a shame to force the GUI # libraries to the closure if GUI is not desired. Loading Loading @@ -73,9 +70,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook codecov coverage mock pyperclip pyqt5 python-magic Loading @@ -88,10 +82,10 @@ buildPythonPackage rec { makeWrapperArgs+=("''${qtWrapperArgs[@]}") ''; meta = with lib; { meta = { description = "Tool and Python library to interact with Android Files"; homepage = "https://github.com/androguard/androguard"; license = licenses.asl20; maintainers = with maintainers; [ pmiddend ]; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ pmiddend ]; }; }
pkgs/development/python-modules/androguard/fix-tests.patch +15 −2 Original line number Diff line number Diff line diff --git a/tests/dataflow_test.py b/tests/dataflow_test.py index e9ac3cdb..edef8200 100644 --- a/tests/dataflow_test.py +++ b/tests/dataflow_test.py @@ -5,7 +5,7 @@ import sys sys.path.append('.') import collections -import mock +from unittest import mock import unittest from androguard.decompiler.dad import dataflow from androguard.decompiler.dad import graph diff --git a/tests/test_types.py b/tests/test_types.py index 127dfc20eb..f1c89f0712 100644 index 127dfc20..f1c89f07 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -182,7 +182,7 @@ @@ -182,7 +182,7 @@ class TypesTest(unittest.TestCase): for i in filter(lambda x: 'const' in x.get_name(), method.get_instructions()): i.show(0) # ins should only have one literal Loading