1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 paramiko,
7}:
8
9buildPythonPackage rec {
10 pname = "unifi-ap";
11 version = "0.0.2";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "tofuSCHNITZEL";
16 repo = "unifi_ap";
17 tag = "v${version}";
18 hash = "sha256-LQqeXFtrOc1h3yJuDrFRt3mqVcDIJb/23rcu/l6YpUQ=";
19 };
20
21 build-system = [
22 setuptools
23 ];
24
25 pythonRelaxDeps = [ "paramiko" ];
26
27 dependencies = [
28 paramiko
29 ];
30
31 pythonImportsCheck = [
32 "unifi_ap"
33 ];
34
35 doCheck = false; # no tests
36
37 meta = {
38 changelog = "https://github.com/tofuSCHNITZEL/unifi_ap/releases/tag/v${version}";
39 description = "Python API for UniFi accesspoints";
40 homepage = "https://github.com/tofuSCHNITZEL/unifi_ap";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ ];
43 };
44}