3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pooch/default.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
2020-08-27 11:49:48 +01:00
, buildPythonPackage
, isPy27
, fetchPypi
, setuptools-scm
2020-08-27 11:49:48 +01:00
, pytestCheckHook
, packaging
, appdirs
, requests
}:
buildPythonPackage rec {
pname = "pooch";
2021-06-18 22:47:30 +01:00
version = "1.4.0";
2020-08-27 11:49:48 +01:00
disabled = isPy27;
src = fetchPypi {
inherit pname version;
2021-06-18 22:47:30 +01:00
sha256 = "f827e79ab51b21a8964a4b1ea8972aa4a1079cb9c1ff8e9ec61893eb7dab50cb";
2020-08-27 11:49:48 +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"
];
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 ];
};
}