1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, docopt
6, pytz
7, requests
8, setuptools
9, vincenty
10, xmltodict
11, pytestCheckHook
12}:
13
14buildPythonPackage rec {
15 pname = "buienradar";
16 version = "1.0.5";
17
18 disabled = pythonOlder "3.4";
19
20 src = fetchFromGitHub {
21 owner = "mjj4791";
22 repo = "python-buienradar";
23 # https://github.com/mjj4791/python-buienradar/issues/14
24 rev = "caa66ea855dbcc7cf6ee13291d9b2ed7ac01ef98";
25 hash = "sha256:0xz03xj5qjayriaah20adh0ycvlvb8jdvgh7w5gm236n64g6krj0";
26 };
27
28 propagatedBuildInputs = [
29 docopt
30 pytz
31 requests
32 setuptools
33 vincenty
34 xmltodict
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 ];
40
41 disabledTests = [
42 # require network connection
43 "test_rain_data"
44 "test_json_data"
45 "test_xml_data"
46 ];
47
48 pythonImportsCheck = [
49 "buienradar.buienradar"
50 "buienradar.constants"
51 ];
52
53 meta = with lib; {
54 description = "Library and CLI tools for interacting with buienradar";
55 homepage = "https://github.com/mjj4791/python-buienradar";
56 license = licenses.mit;
57 maintainers = with maintainers; [ dotlambda ];
58 };
59}