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