1{ lib
2, buildPythonPackage
3, isPy27
4, fetchPypi
5, setuptools-scm
6, pytestCheckHook
7, packaging
8, appdirs
9, requests
10, tqdm
11, paramiko
12, xxhash
13}:
14
15buildPythonPackage rec {
16 pname = "pooch";
17 version = "1.6.0";
18 format = "pyproject";
19 disabled = isPy27;
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-V9IOxLEN1pTSsFu2S8axCcboWmwUBXlM6H7Ys0GrP0Q=";
24 };
25
26 nativeBuildInputs = [ setuptools-scm ];
27
28 propagatedBuildInputs = [ packaging appdirs requests ];
29
30 preCheck = "HOME=$TMPDIR";
31 nativeCheckInputs = [ pytestCheckHook ];
32 # tries to touch network
33 disabledTests = [
34 "pooch_custom_url"
35 "pooch_download"
36 "pooch_logging_level"
37 "pooch_update"
38 "pooch_corrupted"
39 "check_availability"
40 "downloader"
41 "test_retrieve"
42 "test_stream_download"
43 "test_fetch"
44 "decompress"
45 "extractprocessor_fails"
46 "processor"
47 "integration"
48 ];
49
50 passthru = {
51 optional-dependencies = {
52 progress = [ tqdm ];
53 sftp = [ paramiko ];
54 xxhash = [ xxhash ];
55 };
56 };
57
58 meta = with lib; {
59 description = "A friend to fetch your data files.";
60 homepage = "https://github.com/fatiando/pooch";
61 license = licenses.bsd3;
62 maintainers = with maintainers; [ GuillaumeDesforges ];
63 };
64
65}