From f0fb9cc0ffbd4dc73b62e8e3b202ae786b06ae9c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Apr 2024 10:54:02 +0200 Subject: [PATCH] python312Packages.apkinspector: enable tests --- .../python-modules/apkinspector/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/apkinspector/default.nix b/pkgs/development/python-modules/apkinspector/default.nix index a05d3f604530..925845c73da3 100644 --- a/pkgs/development/python-modules/apkinspector/default.nix +++ b/pkgs/development/python-modules/apkinspector/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, poetry-core, pytestCheckHook, pythonOlder, @@ -14,16 +14,16 @@ buildPythonPackage rec { disabled = pythonOlder "3.8"; - src = fetchPypi { - inherit pname version; - hash = "sha256-EztaCoUVbV9pIoba4X4liqPRZiZB6F65PB9cdb/eA+A="; + src = fetchFromGitHub { + owner = "erev0s"; + repo = "apkInspector"; + rev = "refs/tags/v${version}"; + hash = "sha256-n6uVyN5XBEM/nuN7mvhNRwMUgUT5abOsh3CbhKK6ifY="; }; build-system = [ poetry-core ]; - # Tests are not available - # https://github.com/erev0s/apkInspector/issues/21 - doCheck = false; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "apkInspector" ];