65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy27
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
, pytestCheckHook
|
|
, packaging
|
|
, appdirs
|
|
, requests
|
|
, tqdm
|
|
, paramiko
|
|
, xxhash
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pooch";
|
|
version = "1.6.0";
|
|
format = "pyproject";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-V9IOxLEN1pTSsFu2S8axCcboWmwUBXlM6H7Ys0GrP0Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
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"
|
|
];
|
|
|
|
passthru = {
|
|
optional-dependencies = {
|
|
progress = [ tqdm ];
|
|
sftp = [ paramiko ];
|
|
xxhash = [ xxhash ];
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A friend to fetch your data files.";
|
|
homepage = "https://github.com/fatiando/pooch";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ GuillaumeDesforges ];
|
|
};
|
|
|
|
}
|