1{
2 lib,
3 asyncio-dgram,
4 buildPythonPackage,
5 fetchFromGitHub,
6 netifaces,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "keba-kecontact";
12 version = "3.0.3";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "dannerph";
19 repo = "keba-kecontact";
20 rev = "refs/tags/${version}";
21 hash = "sha256-gR1ut2IjrU/JMy8/ZFv0jQTB6c3A/tZqtXMpQsapuj0=";
22 };
23
24 propagatedBuildInputs = [
25 asyncio-dgram
26 netifaces
27 ];
28
29 # Module has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "keba_kecontact" ];
33
34 meta = with lib; {
35 description = "Python library for controlling KEBA charging stations";
36 homepage = "https://github.com/dannerph/keba-kecontact";
37 changelog = "https://github.com/dannerph/keba-kecontact/releases/tag/${version}";
38 license = licenses.mit;
39 maintainers = with maintainers; [ fab ];
40 };
41}