python3Packages.pooch: 1.6.0 -> 1.7.0

This commit is contained in:
Martin Weinelt 2023-09-15 14:06:42 +02:00
parent 309db99765
commit 7afd646d54

View file

@ -2,10 +2,12 @@
, buildPythonPackage , buildPythonPackage
, isPy27 , isPy27
, fetchPypi , fetchPypi
, setuptools
, setuptools-scm , setuptools-scm
, wheel
, pytestCheckHook , pytestCheckHook
, packaging , packaging
, appdirs , platformdirs
, requests , requests
, tqdm , tqdm
, paramiko , paramiko
@ -14,37 +16,26 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pooch"; pname = "pooch";
version = "1.6.0"; version = "1.7.0";
format = "pyproject"; format = "pyproject";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-V9IOxLEN1pTSsFu2S8axCcboWmwUBXlM6H7Ys0GrP0Q="; hash = "sha256-8XShBBtkR/Du+IYPdtF/YO0vhX3A76OHp/CCKK8F2Zg=";
}; };
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
propagatedBuildInputs = [ packaging appdirs requests ]; propagatedBuildInputs = [
packaging
preCheck = "HOME=$TMPDIR"; platformdirs
nativeCheckInputs = [ pytestCheckHook ]; requests
# tries to touch network
disabledTests = [
"pooch_custom_url"
"pooch_download"
"pooch_logging_level"
"pooch_update"
"pooch_corrupted"
"check_availability"
"downloader"
"test_retrieve"
"test_stream_download"
"test_fetch"
"decompress"
"extractprocessor_fails"
"processor"
"integration"
]; ];
passthru = { passthru = {
@ -54,6 +45,33 @@ buildPythonPackage rec {
xxhash = [ xxhash ]; xxhash = [ xxhash ];
}; };
}; };
preCheck = ''
export HOME=$TMPDIR
'';
nativeCheckInputs = [
pytestCheckHook
];
# tries to touch network
disabledTests = [
"check_availability"
"decompress"
"downloader"
"extractprocessor_fails"
"integration"
"pooch_corrupted"
"pooch_custom_url"
"pooch_download"
"pooch_logging_level"
"pooch_update"
"processor"
"test_fetch"
"test_load_registry_from_doi"
"test_retrieve"
"test_stream_download"
];
meta = with lib; { meta = with lib; {
description = "A friend to fetch your data files."; description = "A friend to fetch your data files.";