1{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, pytestCheckHook, requests }:
2
3buildPythonPackage rec {
4 pname = "fritzconnection";
5 version = "1.5.0";
6
7 # no tests on PyPI
8 src = fetchFromGitHub {
9 owner = "kbr";
10 repo = pname;
11 rev = version;
12 sha256 = "sha256-Iw7R+39rpoCTrRD74kBihF7AMcJWxy2xdPhKLznWdlo=";
13 };
14
15 disabled = pythonOlder "3.6";
16
17 propagatedBuildInputs = [ requests ];
18
19 checkInputs = [ pytestCheckHook ];
20
21 pythonImportsCheck = [ "fritzconnection" ];
22
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 };
30}