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