1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools-scm,
6 alarmdecoder,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "adext";
13 version = "0.4.7";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "ajschmidt8";
20 repo = "adext";
21 tag = "v${version}";
22 hash = "sha256-cZMA8/t24xk5b1At2LQWeDWuRfPcXBCXpl2T70YxZeA=";
23 };
24
25 build-system = [ setuptools-scm ];
26
27 dependencies = [ alarmdecoder ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "adext" ];
32
33 meta = with lib; {
34 description = "Python extension for AlarmDecoder";
35 homepage = "https://github.com/ajschmidt8/adext";
36 changelog = "https://github.com/ajschmidt8/adext/releases/tag/${src.tag}";
37 license = with licenses; [ mit ];
38 maintainers = with maintainers; [ fab ];
39 };
40}