blob: 1c6bbdb29d0b1f0592f038d2850d4ec0ec6b7b5f (
plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
docopt,
pytz,
requests,
setuptools,
vincenty,
xmltodict,
pytestCheckHook,
requests-mock,
syrupy,
}:
buildPythonPackage rec {
pname = "buienradar";
version = "1.0.9";
pyproject = true;
src = fetchFromGitHub {
owner = "mjj4791";
repo = "python-buienradar";
tag = version;
hash = "sha256-DTdxzBe9fBOH5fHME++oq62xMtBKnjY7BCevwjl8VZ8=";
};
build-system = [ setuptools ];
dependencies = [
docopt
pytz
requests
setuptools
vincenty
xmltodict
];
nativeCheckInputs = [
pytestCheckHook
requests-mock
syrupy
];
disabledTests = [
# require network connection
"test_rain_data"
"test_json_data"
"test_xml_data"
# tests fail if run on a different day
"test_id_upper1"
"test_invalid_data"
"test_missing_data"
"test_readdata1_30"
"test_readdata1_60"
"test_readdata2_30"
"test_readdata2_60"
"test_readdata3"
];
pytestFlags = [
"--snapshot-warn-unused"
];
pythonImportsCheck = [
"buienradar.buienradar"
"buienradar.constants"
];
meta = {
changelog = "https://github.com/mjj4791/python-buienradar/blob/${src.tag}/CHANGLOG.rst";
description = "Library and CLI tools for interacting with buienradar";
mainProgram = "buienradar";
homepage = "https://github.com/mjj4791/python-buienradar";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|