mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
gdown: replace checkPhase
This commit is contained in:
@@ -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" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user