blob: 58066991b84ecc5c3424a67d3c0599da244b9ce8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
setuptools,
zigpy,
}:
buildPythonPackage rec {
pname = "zigpy-xbee";
version = "0.21.1";
pyproject = true;
src = fetchFromGitHub {
owner = "zigpy";
repo = "zigpy-xbee";
tag = version;
hash = "sha256-ALwhl9WUDkv0POufF/G/rZrn+ITbMdh6y86lShy6ZTg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail ', "setuptools-git-versioning<2"' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
build-system = [ setuptools ];
dependencies = [
zigpy
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
meta = {
changelog = "https://github.com/zigpy/zigpy-xbee/releases/tag/${version}";
description = "Library which communicates with XBee radios for zigpy";
homepage = "https://github.com/zigpy/zigpy-xbee";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ mvnetbiz ];
platforms = lib.platforms.linux;
};
}
|