1{ lib
2, buildPythonPackage
3, cryptography
4, fetchFromGitHub
5, pytestCheckHook
6, pythonOlder
7, pyzipper
8, setuptools
9}:
10
11buildPythonPackage rec {
12 pname = "xknxproject";
13 version = "3.1.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchFromGitHub {
19 owner = "XKNX";
20 repo = "xknxproject";
21 rev = "refs/tags/${version}";
22 hash = "sha256-j9Bfzl1cYhmDV2Cw4/aobo6Uai50V5JrzQWrrkDm3lw=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 ];
28
29 propagatedBuildInputs = [
30 cryptography
31 pyzipper
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [
39 "xknxproject"
40 ];
41
42 meta = with lib; {
43 description = "ETS project parser";
44 homepage = "https://github.com/XKNX/xknxproject";
45 changelog = "https://github.com/XKNX/xknxproject/releases/tag/${version}";
46 license = licenses.gpl2Only;
47 maintainers = with maintainers; [ fab ];
48 };
49}