1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pyweatherflowrest";
12 version = "1.0.11";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "briis";
19 repo = "pyweatherflowrest";
20 tag = "v${version}";
21 hash = "sha256-l1V3HgzqnnoY6sWHwfgBtcIR782RwKhekY2qOLrUMNY=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ aiohttp ];
27
28 # Module has no tests. test.py is a demo script
29 doCheck = false;
30
31 pythonImportsCheck = [ "pyweatherflowrest" ];
32
33 meta = with lib; {
34 description = "Python module to get data from WeatherFlow Weather Stations";
35 homepage = "https://github.com/briis/pyweatherflowrest";
36 changelog = "https://github.com/briis/pyweatherflowrest/blob/v${version}/CHANGELOG.md";
37 license = with licenses; [ mit ];
38 maintainers = with maintainers; [ fab ];
39 };
40}