nixpkgs/pkgs/development/python-modules/pynetgear/default.nix
2022-02-11 14:33:40 +01:00

41 lines
789 B
Nix

{ 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 ];
};
}