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