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.6.0";
15 format = "pyproject";
16 disabled = isPy27;
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-V9IOxLEN1pTSsFu2S8axCcboWmwUBXlM6H7Ys0GrP0Q=";
21 };
22
23 nativeBuildInputs = [ setuptools-scm ];
24
25 propagatedBuildInputs = [ packaging appdirs requests ];
26
27 preCheck = "HOME=$TMPDIR";
28 checkInputs = [ pytestCheckHook ];
29 # tries to touch network
30 disabledTests = [
31 "pooch_custom_url"
32 "pooch_download"
33 "pooch_logging_level"
34 "pooch_update"
35 "pooch_corrupted"
36 "check_availability"
37 "downloader"
38 "test_retrieve"
39 "test_stream_download"
40 "test_fetch"
41 "decompress"
42 "extractprocessor_fails"
43 "processor"
44 "integration"
45 ];
46
47 meta = with lib; {
48 description = "A friend to fetch your data files.";
49 homepage = "https://github.com/fatiando/pooch";
50 license = licenses.bsd3;
51 maintainers = with maintainers; [ GuillaumeDesforges ];
52 };
53
54}