2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-08-27 11:49:48 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, fetchPypi
|
2021-06-21 19:04:19 +01:00
|
|
|
, setuptools-scm
|
2020-08-27 11:49:48 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, packaging
|
|
|
|
, appdirs
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pooch";
|
2021-10-11 13:11:35 +01:00
|
|
|
version = "1.5.2";
|
2020-08-27 11:49:48 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-11 13:11:35 +01:00
|
|
|
sha256 = "5969b2f1defbdc405df932767e05e0b536e2771c27f1f95d7f260bc99bf13581";
|
2020-08-27 11:49:48 +01:00
|
|
|
};
|
|
|
|
|
2021-06-21 19:04:19 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
2020-08-27 11:49:48 +01:00
|
|
|
propagatedBuildInputs = [ packaging appdirs requests ];
|
|
|
|
|
2020-11-29 21:48:39 +00:00
|
|
|
preCheck = "HOME=$TMPDIR";
|
2020-08-27 11:49:48 +01:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-11-29 21:48:39 +00:00
|
|
|
# tries to touch network
|
2020-08-27 11:49:48 +01:00
|
|
|
disabledTests = [
|
|
|
|
"pooch_custom_url"
|
|
|
|
"pooch_download"
|
|
|
|
"pooch_logging_level"
|
|
|
|
"pooch_update"
|
|
|
|
"pooch_corrupted"
|
|
|
|
"check_availability"
|
|
|
|
"downloader"
|
2020-11-29 21:48:39 +00:00
|
|
|
"test_retrieve"
|
|
|
|
"test_stream_download"
|
2020-08-27 11:49:48 +01:00
|
|
|
"test_fetch"
|
|
|
|
"decompress"
|
|
|
|
"extractprocessor_fails"
|
|
|
|
"processor"
|
|
|
|
"integration"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-27 11:49:48 +01:00
|
|
|
description = "A friend to fetch your data files.";
|
|
|
|
homepage = "https://github.com/fatiando/pooch";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ GuillaumeDesforges ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|