python3Packages.apt-repo: disable tests (network required)

This commit is contained in:
Sarah Clark 2025-05-03 15:29:59 -07:00
parent b440606b42
commit a823ebc5b6

View File

@ -5,7 +5,6 @@
buildPythonPackage, buildPythonPackage,
pytestCheckHook, pytestCheckHook,
pythonOlder,
setuptools, setuptools,
}: }:
@ -13,7 +12,6 @@ buildPythonPackage {
pname = "apt-repo"; pname = "apt-repo";
version = "0.5-unstable-2023-09-27"; version = "0.5-unstable-2023-09-27";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "brennerm"; owner = "brennerm";
@ -24,7 +22,8 @@ buildPythonPackage {
passthru.updateScript = unstableGitUpdater { }; passthru.updateScript = unstableGitUpdater { };
build-system = [ setuptools ]; build-system = [ setuptools ];
nativeBuildInputs = [ pytestCheckHook ];
doCheck = false; # All tests require a network connection
pythonImportsCheck = [ "apt_repo" ]; pythonImportsCheck = [ "apt_repo" ];