gdown: replace checkPhase

This commit is contained in:
Sigmanificient
2026-07-19 02:03:54 +02:00
parent 6488525151
commit efba1a7e20

View File

@@ -10,6 +10,8 @@
requests,
setuptools,
tqdm,
pytestCheckHook,
writableTmpDirAsHomeHook,
}:
buildPythonPackage (finalAttrs: {
@@ -37,9 +39,18 @@ buildPythonPackage (finalAttrs: {
]
++ requests.optional-dependencies.socks;
checkPhase = ''
$out/bin/gdown --help > /dev/null
'';
nativeCheckInputs = [
pytestCheckHook
writableTmpDirAsHomeHook
];
disabledTestPaths = [
# requires network
"tests/test___main__.py"
"tests/test_cached_download.py"
"tests/test_download.py"
"tests/test_download_folder.py"
];
pythonImportsCheck = [ "gdown" ];