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