linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / xknx / default.nix
bloba181a6741887f96804917422701e53a08c250ba3
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , netifaces
5 , voluptuous
6 , pyyaml
7 , pytest-asyncio
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "xknx";
14   version = "0.18.0";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "XKNX";
19     repo = pname;
20     rev = version;
21     sha256 = "sha256-8g8DrFvhecdPsfiw+uKnfJOrLQeuFUziK2Jl3xKmrf4=";
22   };
24   propagatedBuildInputs = [
25     voluptuous
26     netifaces
27     pyyaml
28   ];
30   checkInputs = [
31     pytest-asyncio
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [ "xknx" ];
37   meta = with lib; {
38     description = "KNX Library Written in Python";
39     longDescription = ''
40       XKNX is an asynchronous Python library for reading and writing KNX/IP
41       packets. It provides support for KNX/IP routing and tunneling devices.
42     '';
43     homepage = "https://github.com/XKNX/xknx";
44     license = with licenses; [ mit ];
45     maintainers = with maintainers; [ fab ];
46   };