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
, isPy27
, fetchPypi
, setuptools
, setuptools-scm
, wheel
, pytestCheckHook
, packaging
, appdirs
, platformdirs
, requests
, tqdm
, paramiko
@ -14,37 +16,26 @@
buildPythonPackage rec {
pname = "pooch";
version = "1.6.0";
version = "1.7.0";
format = "pyproject";
disabled = isPy27;
src = fetchPypi {
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 ];
preCheck = "HOME=$TMPDIR";
nativeCheckInputs = [ pytestCheckHook ];
# 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"
propagatedBuildInputs = [
packaging
platformdirs
requests
];
passthru = {
@ -54,6 +45,33 @@ buildPythonPackage rec {
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; {
description = "A friend to fetch your data files.";