blob: 250601311e8c8f541d64f03e4802c7bf588e8883 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pint,
poetry-core,
psychrolib,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyweatherflowudp";
version = "1.4.5";
pyproject = true;
src = fetchFromGitHub {
owner = "briis";
repo = "pyweatherflowudp";
tag = "v${version}";
hash = "sha256-aTwGFYTtd07BsWFaFc7ns+8oh2AxTUfRFSu81Zv5OoA=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
pint
psychrolib
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "pyweatherflowudp" ];
disabledTests = [
# Tests require network access
"test_flow_control"
"test_listen_and_stop"
"test_repetitive_listen_and_stop"
"test_process_message"
"test_listener_connection_errors"
"test_invalid_messages"
];
meta = {
description = "Library to receive UDP Packets from Weatherflow Weatherstations";
homepage = "https://github.com/briis/pyweatherflowudp";
changelog = "https://github.com/briis/pyweatherflowudp/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|