1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pynacl
6, pythonOlder
7, requests
8}:
9
10buildPythonPackage rec {
11 pname = "pynuki";
12 version = "1.6.2";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "pschmitt";
19 repo = pname;
20 rev = "refs/tags/${version}";
21 hash = "sha256-I0eAhgThSBEmJF6mYw+0Bh1kCUqEMFnCx+4n7l3Hf14=";
22 };
23
24 nativeBuildInputs = [
25 poetry-core
26 ];
27
28 propagatedBuildInputs = [
29 pynacl
30 requests
31 ];
32
33 # Project has no tests
34 doCheck = false;
35
36 pythonImportsCheck = [
37 "pynuki"
38 ];
39
40 meta = with lib; {
41 description = "Python bindings for nuki.io bridges";
42 homepage = "https://github.com/pschmitt/pynuki";
43 changelog = "https://github.com/pschmitt/pynuki/releases/tag/${version}";
44 license = with licenses; [ gpl3Only ];
45 maintainers = with maintainers; [ fab ];
46 };
47}