nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6}:
7
8buildPythonPackage rec {
9 pname = "pynetgear";
10 version = "0.10.10";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "MatMaul";
15 repo = "pynetgear";
16 tag = version;
17 hash = "sha256-5Lj2cK/SOGgaPu8dI9X3Leg4dPAY7tdIHCzFnNaube8=";
18 };
19
20 propagatedBuildInputs = [ requests ];
21
22 pythonImportsCheck = [ "pynetgear" ];
23
24 # Tests don't pass
25 # https://github.com/MatMaul/pynetgear/issues/109
26 doCheck = false;
27
28 meta = {
29 description = "Module for interacting with Netgear wireless routers";
30 homepage = "https://github.com/MatMaul/pynetgear";
31 changelog = "https://github.com/MatMaul/pynetgear/releases/tag/${version}";
32 license = with lib.licenses; [ mit ];
33 maintainers = with lib.maintainers; [ fab ];
34 };
35}