2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
2023-05-24 13:37:59 +00:00
|
|
|
, async-timeout
|
2021-01-15 22:18:51 +00:00
|
|
|
, 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
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-05-24 13:37:59 +00:00
|
|
|
, setuptools
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xknx";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.11.2";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "pyproject";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
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-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-rKvHb0wkWVuZO8M8uIQdOiY1N6DmGSpqUgz4YYbUfSM=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-05-24 13:37:59 +00:00
|
|
|
async-timeout
|
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
|
|
|
};
|
|
|
|
}
|