1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, netifaces
5, voluptuous
6, pyyaml
7, pytest-asyncio
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "xknx";
14 version = "0.18.13";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "XKNX";
21 repo = pname;
22 rev = version;
23 sha256 = "sha256-GZ5FRPQn69+/Fnx10VKWSIAaVXCcVyfvQVH1JaMGRC0=";
24 };
25
26 propagatedBuildInputs = [
27 voluptuous
28 netifaces
29 pyyaml
30 ];
31
32 checkInputs = [
33 pytest-asyncio
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "xknx"
39 ];
40
41 meta = with lib; {
42 description = "KNX Library Written in Python";
43 longDescription = ''
44 XKNX is an asynchronous Python library for reading and writing KNX/IP
45 packets. It provides support for KNX/IP routing and tunneling devices.
46 '';
47 homepage = "https://github.com/XKNX/xknx";
48 license = with licenses; [ mit ];
49 maintainers = with maintainers; [ fab ];
50 platforms = platforms.linux;
51 };
52}