depot/third_party/nixpkgs/pkgs/development/python-modules/pynetgear/default.nix
Default email d56f44df06 Project import generated by Copybara.
GitOrigin-RevId: bc4b9eef3ce3d5a90d8693e8367c9cbfc9fc1e13
2022-04-03 20:54:34 +02:00

40 lines
789 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pythonOlder
}:
buildPythonPackage rec {
pname = "pynetgear";
version = "0.9.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MatMaul";
repo = pname;
rev = version;
sha256 = "sha256-/aPyx+jNOCW6bzeYAEBP1yfIJfQwJjo1i6WaRvAz0oU=";
};
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 ];
};
}