1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6 urllib3,
7}:
8
9buildPythonPackage rec {
10 pname = "unifiled";
11 version = "1.1";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "florisvdk";
16 repo = "unifiled";
17 rev = "v${version}";
18 sha256 = "1nmqxxhwa0isxdb889nhbp7w4axj1mcrwd3pr9d8nhpw4yj9h3vq";
19 };
20
21 propagatedBuildInputs = [
22 requests
23 urllib3
24 ];
25
26 # Project doesn't have any tests
27 doCheck = false;
28 pythonImportsCheck = [ "unifiled" ];
29
30 meta = with lib; {
31 description = "Python module for Ubiquiti Unifi LED controller";
32 homepage = "https://github.com/florisvdk/unifiled";
33 license = with licenses; [ mit ];
34 maintainers = with maintainers; [ fab ];
35 };
36}