0215034f25
when they already rely on SRI hashes.
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{ lib
|
|
, async-timeout
|
|
, asynctest
|
|
, buildPythonPackage
|
|
, coloredlogs
|
|
, fetchFromGitHub
|
|
, jsonschema
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, voluptuous
|
|
, zigpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zigpy-znp";
|
|
version = "0.9.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zigpy";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-UTL7g9tIXtMVeBRq5Fdw5VqUB9H/LaobASwHlFPoO2s=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
coloredlogs
|
|
jsonschema
|
|
pyserial
|
|
pyserial-asyncio
|
|
voluptuous
|
|
zigpy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
asynctest
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"zigpy_znp"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for zigpy which communicates with TI ZNP radios";
|
|
homepage = "https://github.com/zigpy/zigpy-znp";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|