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