1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 click,
6 fetchFromGitHub,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "pykostalpiko";
13 version = "1.1.2";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "Florian7843";
20 repo = pname;
21 rev = "v${version}";
22 hash = "sha256-kmzFsOgmMb8bOkulg7G6vXEPdb0xizh7u5LjnHfEWWQ=";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 click
28 ];
29
30 # Module has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [ "pykostalpiko" ];
34
35 meta = with lib; {
36 description = "Library and CLI-tool to fetch the data from a Kostal Piko inverter";
37 homepage = "https://github.com/Florian7843/pykostalpiko";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ fab ];
40 };
41}