1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "pynetgear";
11 version = "0.10.10";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "MatMaul";
18 repo = "pynetgear";
19 tag = version;
20 hash = "sha256-5Lj2cK/SOGgaPu8dI9X3Leg4dPAY7tdIHCzFnNaube8=";
21 };
22
23 propagatedBuildInputs = [ requests ];
24
25 pythonImportsCheck = [ "pynetgear" ];
26
27 # Tests don't pass
28 # https://github.com/MatMaul/pynetgear/issues/109
29 doCheck = false;
30
31 meta = with lib; {
32 description = "Module for interacting with Netgear wireless routers";
33 homepage = "https://github.com/MatMaul/pynetgear";
34 changelog = "https://github.com/MatMaul/pynetgear/releases/tag/${version}";
35 license = with licenses; [ mit ];
36 maintainers = with maintainers; [ fab ];
37 };
38}