1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, requests
6}:
7
8buildPythonPackage rec {
9 pname = "pynuki";
10 version = "1.4.1";
11 format = "pyproject";
12
13 src = fetchFromGitHub {
14 owner = "pschmitt";
15 repo = pname;
16 rev = version;
17 sha256 = "1nymlrf0j430851plp355697p55asfxjmavdh2zr96b16d41dnn4";
18 };
19
20 nativeBuildInputs = [ poetry-core ];
21
22 propagatedBuildInputs = [ requests ];
23
24 # Project has no tests
25 doCheck = false;
26 pythonImportsCheck = [ "pynuki" ];
27
28 meta = with lib; {
29 description = "Python bindings for nuki.io bridges";
30 homepage = "https://github.com/pschmitt/pynuki";
31 license = with licenses; [ gpl3Only ];
32 maintainers = with maintainers; [ fab ];
33 };
34}