6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
41 lines
883 B
Nix
41 lines
883 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynetgear";
|
|
version = "0.10.9";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MatMaul";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-VYiXFdUD4q6d7KraA26SFV29k53AoluCj7ACMgNQcLU=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/MatMaul/pynetgear/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|