1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8 pyzipper,
9 setuptools,
10 striprtf,
11}:
12
13buildPythonPackage rec {
14 pname = "xknxproject";
15 version = "3.7.1";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchFromGitHub {
21 owner = "XKNX";
22 repo = "xknxproject";
23 rev = "refs/tags/${version}";
24 hash = "sha256-/Zg4MYOvbsbJ0zyKuq+gX0PNbm8TyyBMziIaGCq6Lt8=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 cryptography
31 pyzipper
32 striprtf
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "xknxproject" ];
38
39 meta = with lib; {
40 description = "Library to extract KNX projects and parses the underlying XML";
41 homepage = "https://github.com/XKNX/xknxproject";
42 changelog = "https://github.com/XKNX/xknxproject/releases/tag/${version}";
43 license = licenses.gpl2Only;
44 maintainers = with maintainers; [ fab ];
45 };
46}