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