2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-09-25 04:45:31 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, fetchPypi
|
2021-06-28 23:13:55 +00:00
|
|
|
, setuptools-scm
|
2020-09-25 04:45:31 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, packaging
|
|
|
|
, appdirs
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pooch";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "1.6.0";
|
|
|
|
format = "pyproject";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-V9IOxLEN1pTSsFu2S8axCcboWmwUBXlM6H7Ys0GrP0Q=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [ packaging appdirs requests ];
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
preCheck = "HOME=$TMPDIR";
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-12-07 07:45:13 +00:00
|
|
|
# tries to touch network
|
2020-09-25 04:45:31 +00:00
|
|
|
disabledTests = [
|
|
|
|
"pooch_custom_url"
|
|
|
|
"pooch_download"
|
|
|
|
"pooch_logging_level"
|
|
|
|
"pooch_update"
|
|
|
|
"pooch_corrupted"
|
|
|
|
"check_availability"
|
|
|
|
"downloader"
|
2020-12-07 07:45:13 +00:00
|
|
|
"test_retrieve"
|
|
|
|
"test_stream_download"
|
2020-09-25 04:45:31 +00:00
|
|
|
"test_fetch"
|
|
|
|
"decompress"
|
|
|
|
"extractprocessor_fails"
|
|
|
|
"processor"
|
|
|
|
"integration"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
description = "A friend to fetch your data files.";
|
|
|
|
homepage = "https://github.com/fatiando/pooch";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ GuillaumeDesforges ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|