blob: 9519831c6d2af2aa47f4ba0c5ef197448039689d (
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
58
59
60
61
62
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pint
, poetry-core
, psychrolib
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyweatherflowudp";
version = "1.4.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "briis";
repo = "pyweatherflowudp";
rev = "refs/tags/v${version}";
hash = "sha256-5WdkT4U/+uO9UUIxumrxCKZnK9MdQcvfaO9UfpmpxJE=";
};
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 = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|