1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7 click,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "satel-integra";
13 version = "0.3.7";
14 pyproject = true;
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "c-soft";
20 repo = "satel_integra";
21 tag = version;
22 hash = "sha256-nCFb8NaZQ6TO4aXCSpbbHGkJr3nJVkt1R4hi9mts070=";
23 };
24
25 postPatch = ''
26 substituteInPlace setup.py \
27 --replace "'pytest-runner'," ""
28 '';
29
30 build-system = [ setuptools ];
31
32 dependencies = [ click ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "satel_integra" ];
37
38 meta = {
39 description = "Communication library and basic testing tool for Satel Integra alarm system";
40 homepage = "https://github.com/c-soft/satel_integra";
41 changelog = "https://github.com/c-soft/satel_integra/releases/tag/${version}";
42 license = lib.licenses.mit;
43 maintainers = [ lib.maintainers.jamiemagee ];
44 };
45}