depot/third_party/nixpkgs/pkgs/development/python-modules/pynetgear/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

40 lines
805 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pythonOlder
}:
buildPythonPackage rec {
pname = "pynetgear";
version = "0.10.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MatMaul";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-eYcMS8gxJO5JXvgIcZEEei5THb+gDdmoad+/Vokis/Q=";
};
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 ];
};
}