1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "pyecowitt";
11 version = "0.21";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "garbled1";
18 repo = pname;
19 rev = version;
20 sha256 = "5VdVo6j2HZXSCWU4NvfWzyS/KJfVb7N1KSMeu8TvWaQ=";
21 };
22
23 propagatedBuildInputs = [ aiohttp ];
24
25 # Project thas no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "pyecowitt" ];
29
30 meta = with lib; {
31 description = "Python module for the EcoWitt Protocol";
32 homepage = "https://github.com/garbled1/pyecowitt";
33 license = with licenses; [ asl20 ];
34 maintainers = with maintainers; [ fab ];
35 };
36}