blob: f0ddf387354b6d14105ddfea91a9667307d403a6 (
plain) (
blame)
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
49
50
51
52
53
54
55
56
57
58
59
60
|
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonPackage rec {
pname = "zigpy-cli";
version = "1.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "zigpy";
repo = "zigpy-cli";
rev = "refs/tags/v${version}";
hash = "sha256-OxVSEBo+wFEBZnWpmQ4aUZWppCh0oavxlQvwDXiWiG8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools-git-versioning<2"' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
nativeBuildInputs = with python3.pkgs; [
setuptools
];
propagatedBuildInputs = with python3.pkgs; [
bellows
click
coloredlogs
scapy
zigpy
zigpy-deconz
zigpy-xbee
# zigpy-zboss # not packaged
zigpy-zigate
zigpy-znp
];
nativeCheckInputs = with python3.pkgs; [
freezegun
pytest-asyncio
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [
"zigpy_cli"
];
meta = with lib; {
description = "Command line interface for zigpy";
homepage = "https://github.com/zigpy/zigpy-cli";
changelog = "https://github.com/zigpy/zigpy/releases/tag/v${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ SuperSandro2000 ];
platforms = platforms.linux;
};
}
|