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