1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, iso4217
6, pytest-asyncio
7, pythonOlder
8, pytz
9}:
10
11buildPythonPackage rec {
12 pname = "pyefergy";
13 version = "22.1.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "tkdrob";
20 repo = pname;
21 rev = version;
22 hash = "sha256-AdoM+PcVoajxhnEfkyN9UuNufChu8XGmZDLNC3mjrps=";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 iso4217
28 pytz
29 ];
30
31 # Tests require network access
32 doCheck =false;
33
34 pythonImportsCheck = [
35 "pyefergy"
36 ];
37
38 meta = with lib; {
39 description = "Python API library for Efergy energy meters";
40 homepage = "https://github.com/tkdrob/pyefergy";
41 license = with licenses; [ mit ];
42 maintainers = with maintainers; [ fab ];
43 };
44}