Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / fritzconnection / default.nix
blob8e54cb6897cca7565b402293f871f58ee72fbbdc
1 { lib, buildPythonPackage, pythonOlder, fetchFromGitHub, pytestCheckHook, requests }:
3 buildPythonPackage rec {
4   pname = "fritzconnection";
5   version = "1.4.2";
7   # no tests on PyPI
8   src = fetchFromGitHub {
9     owner = "kbr";
10     repo = pname;
11     rev = version;
12     sha256 = "02w1hwbfwbh5xlq433myzv6ms7jqxg8kn3d6znq4ic22zprzf5r2";
13   };
15   disabled = pythonOlder "3.6";
17   propagatedBuildInputs = [ requests ];
19   checkInputs = [ pytestCheckHook ];
21   pythonImportsCheck = [ "fritzconnection" ];
23   meta = with lib; {
24     description = "Python-Tool to communicate with the AVM Fritz!Box";
25     homepage = "https://github.com/kbr/fritzconnection";
26     changelog = "https://fritzconnection.readthedocs.io/en/${version}/sources/changes.html";
27     license = licenses.mit;
28     maintainers = with maintainers; [ dotlambda valodim ];
29   };