summary refs log tree commit diff
path: root/pkgs/development/python-modules/pynuki/default.nix
blob: 9c3dc394cc046cccee5fb993a102af0600620389 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, requests
}:

buildPythonPackage rec {
  pname = "pynuki";
  version = "1.4.1";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "pschmitt";
    repo = pname;
    rev = version;
    sha256 = "1nymlrf0j430851plp355697p55asfxjmavdh2zr96b16d41dnn4";
  };

  nativeBuildInputs = [ poetry-core ];

  propagatedBuildInputs = [ requests ];

  # Project has no tests
  doCheck = false;
  pythonImportsCheck = [ "pynuki" ];

  meta = with lib; {
    description = "Python bindings for nuki.io bridges";
    homepage = "https://github.com/pschmitt/pynuki";
    license = with licenses; [ gpl3Only ];
    maintainers = with maintainers; [ fab ];
  };
}