1{
2 lib,
3 aiohttp,
4 async-timeout,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "volkszaehler";
13 version = "0.5.2";
14 pyproject = true;
15
16 disabled = pythonOlder "3.10";
17
18 src = fetchFromGitHub {
19 owner = "home-assistant-ecosystem";
20 repo = "python-volkszaehler";
21 tag = version;
22 hash = "sha256-2XOV+Cft7xLIDNDpwNc+F8VasCYD8XEkxnwW0iS/p9U=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 aiohttp
29 async-timeout
30 ];
31
32 # no tests are present
33 doCheck = false;
34
35 pythonImportsCheck = [ "volkszaehler" ];
36
37 meta = with lib; {
38 description = "Python module for interacting with the Volkszahler API";
39 homepage = "https://github.com/home-assistant-ecosystem/python-volkszaehler";
40 changelog = "https://github.com/home-assistant-ecosystem/python-volkszaehler/releases/tag/${version}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fab ];
43 };
44}