2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-04-15 01:41:22 +00:00
|
|
|
, cryptography
|
2022-04-27 09:35:20 +00:00
|
|
|
, ifaddr
|
2021-01-15 22:18:51 +00:00
|
|
|
, voluptuous
|
|
|
|
, pyyaml
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xknx";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.3.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "XKNX";
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-G4az6YmCDv1MPF30mBQVNBPZdebjZqd+0vxo5F5iDWY=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-04-15 01:41:22 +00:00
|
|
|
cryptography
|
2022-04-27 09:35:20 +00:00
|
|
|
ifaddr
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-01-15 22:18:51 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"xknx"
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test requires network access
|
|
|
|
"test_scan_timeout"
|
2022-11-04 12:27:35 +00:00
|
|
|
"test_start_secure_routing_knx_keys"
|
|
|
|
"test_start_secure_routing_manual"
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "KNX Library Written in Python";
|
|
|
|
longDescription = ''
|
|
|
|
XKNX is an asynchronous Python library for reading and writing KNX/IP
|
|
|
|
packets. It provides support for KNX/IP routing and tunneling devices.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/XKNX/xknx";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/XKNX/xknx/releases/tag/${version}";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2021-06-28 23:13:55 +00:00
|
|
|
platforms = platforms.linux;
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
}
|