about summary refs log tree commit diff
path: root/pkgs/development/python-modules/unifiled/default.nix
blob: 0c2ec7dd96459ec6f87192d06f668609607aef17 (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
35
36
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  requests,
  urllib3,
}:

buildPythonPackage rec {
  pname = "unifiled";
  version = "1.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "florisvdk";
    repo = pname;
    rev = "v${version}";
    sha256 = "1nmqxxhwa0isxdb889nhbp7w4axj1mcrwd3pr9d8nhpw4yj9h3vq";
  };

  propagatedBuildInputs = [
    requests
    urllib3
  ];

  # Project doesn't have any tests
  doCheck = false;
  pythonImportsCheck = [ "unifiled" ];

  meta = with lib; {
    description = "Python module for Ubiquiti Unifi LED controller";
    homepage = "https://github.com/florisvdk/unifiled";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}