1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 setuptools,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pyrympro";
12 version = "0.0.9";
13 pyproject = true;
14
15 disabled = pythonOlder "3.10";
16
17 src = fetchFromGitHub {
18 owner = "OnFreund";
19 repo = "pyrympro";
20 tag = "v${version}";
21 hash = "sha256-+KgYdiVuX8Ycw0Odte/EXsoWiMaLmTU6zTeJCw9jwvs=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ aiohttp ];
27
28 # Module has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "pyrympro" ];
32
33 meta = with lib; {
34 description = "Module to interact with Read Your Meter Pro";
35 homepage = "https://github.com/OnFreund/pyrympro";
36 license = licenses.mit;
37 maintainers = with maintainers; [ fab ];
38 };
39}