Merge pull request #159239 from fabaff/pynetgear

This commit is contained in:
Martin Weinelt 2022-02-11 14:54:11 +01:00 committed by GitHub
commit 59c63a0fbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 1 deletions

View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pythonOlder
}:
buildPythonPackage rec {
pname = "pynetgear";
version = "0.9.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MatMaul";
repo = pname;
rev = version;
sha256 = "sha256-sLGr8I0LcLPrmQZ6dI+hwRAiNCrnLtr2WU04rPoG4x4=";
};
propagatedBuildInputs = [
requests
];
pythonImportsCheck = [
"pynetgear"
];
# Tests don't pass
# https://github.com/MatMaul/pynetgear/issues/109
doCheck = false;
meta = with lib; {
description = "Module for interacting with Netgear wireless routers";
homepage = "https://github.com/MatMaul/pynetgear";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -569,7 +569,7 @@
"nest" = ps: with ps; [ aiohttp-cors google-nest-sdm ha-ffmpeg python-nest ];
"netatmo" = ps: with ps; [ pyturbojpeg aiohttp-cors hass-nabucasa pyatmo ];
"netdata" = ps: with ps; [ netdata ];
"netgear" = ps: with ps; [ ]; # missing inputs: pynetgear
"netgear" = ps: with ps; [ pynetgear ];
"netgear_lte" = ps: with ps; [ eternalegypt ];
"netio" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pynetio
"network" = ps: with ps; [ aiohttp-cors ifaddr ];
@ -1368,6 +1368,7 @@
"ness_alarm"
"nest"
"netatmo"
"netgear"
"network"
"nexia"
"nightscout"

View file

@ -7208,6 +7208,8 @@ in {
pynetdicom = callPackage ../development/python-modules/pynetdicom { };
pynetgear = callPackage ../development/python-modules/pynetgear { };
pynina = callPackage ../development/python-modules/pynina { };
pynisher = callPackage ../development/python-modules/pynisher { };