1{
2 lib,
3 buildPythonPackage,
4 colorlog,
5 pyyaml,
6 fetchPypi,
7 pythonOlder,
8 requests,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "lupupy";
14 version = "0.3.2";
15 pyproject = true;
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-A92Jk6WlRKep3dkbqLiYYHklEh0pyncipRW6swq0mvo=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [
27 colorlog
28 pyyaml
29 requests
30 ];
31
32 # Project has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "lupupy" ];
36
37 meta = with lib; {
38 description = "Python module to control Lupusec alarm control panels";
39 mainProgram = "lupupy";
40 homepage = "https://github.com/majuss/lupupy";
41 changelog = "https://github.com/majuss/lupupy/releases/tag/v${version}";
42 license = with licenses; [ mit ];
43 maintainers = with maintainers; [ fab ];
44 };
45}