2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-11-03 02:18:15 +00:00
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, coloredlogs
|
|
|
|
, fetchFromGitHub
|
2021-05-20 23:08:51 +00:00
|
|
|
, jsonschema
|
2020-11-03 02:18:15 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
2023-07-15 17:15:38 +00:00
|
|
|
, pytest-rerunfailures
|
2020-11-03 02:18:15 +00:00
|
|
|
, pytest-timeout
|
|
|
|
, pytestCheckHook
|
2021-05-20 23:08:51 +00:00
|
|
|
, pythonOlder
|
2020-11-03 02:18:15 +00:00
|
|
|
, voluptuous
|
2021-05-20 23:08:51 +00:00
|
|
|
, zigpy
|
|
|
|
}:
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zigpy-znp";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.11.4";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-05-20 23:08:51 +00:00
|
|
|
owner = "zigpy";
|
|
|
|
repo = pname;
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-wt7ZsMXOh+CbhJCUMS7RhzozYlyINRs0xOF7ecwkNCU=";
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "timeout = 20" "timeout = 300"
|
|
|
|
'';
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
async-timeout
|
|
|
|
coloredlogs
|
2021-05-20 23:08:51 +00:00
|
|
|
jsonschema
|
2020-11-03 02:18:15 +00:00
|
|
|
voluptuous
|
|
|
|
zigpy
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-11-03 02:18:15 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
2023-07-15 17:15:38 +00:00
|
|
|
pytest-rerunfailures
|
2020-11-03 02:18:15 +00:00
|
|
|
pytest-timeout
|
|
|
|
pytestCheckHook
|
2023-04-12 12:48:02 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"--reruns=3"
|
2020-11-03 02:18:15 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"zigpy_znp"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-07-14 12:49:19 +00:00
|
|
|
description = "Library for zigpy which communicates with TI ZNP radios";
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://github.com/zigpy/zigpy-znp";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/zigpy/zigpy-znp/releases/tag/v${version}";
|
2020-11-03 02:18:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|