Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python312Packages.apkinspector: enable tests

+7 -7
+7 -7
pkgs/development/python-modules/apkinspector/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - fetchPypi, 4 + fetchFromGitHub, 5 5 poetry-core, 6 6 pytestCheckHook, 7 7 pythonOlder, ··· 14 14 15 15 disabled = pythonOlder "3.8"; 16 16 17 - src = fetchPypi { 18 - inherit pname version; 19 - hash = "sha256-EztaCoUVbV9pIoba4X4liqPRZiZB6F65PB9cdb/eA+A="; 17 + src = fetchFromGitHub { 18 + owner = "erev0s"; 19 + repo = "apkInspector"; 20 + rev = "refs/tags/v${version}"; 21 + hash = "sha256-n6uVyN5XBEM/nuN7mvhNRwMUgUT5abOsh3CbhKK6ifY="; 20 22 }; 21 23 22 24 build-system = [ poetry-core ]; 23 25 24 - # Tests are not available 25 - # https://github.com/erev0s/apkInspector/issues/21 26 - doCheck = false; 26 + nativeCheckInputs = [ pytestCheckHook ]; 27 27 28 28 pythonImportsCheck = [ "apkInspector" ]; 29 29