1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, pytestCheckHook
6, requests
7}:
8
9buildPythonPackage rec {
10 pname = "fritzconnection";
11 version = "1.10.3";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "kbr";
18 repo = pname;
19 rev = version;
20 sha256 = "sha256-eRvo40VXgo+SQGeh88vRfHPnbrsVDyz03ToIgwRc43Q=";
21 };
22
23 propagatedBuildInputs = [
24 requests
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "fritzconnection"
33 ];
34
35 meta = with lib; {
36 description = "Python module to communicate with the AVM Fritz!Box";
37 homepage = "https://github.com/kbr/fritzconnection";
38 changelog = "https://fritzconnection.readthedocs.io/en/${version}/sources/changes.html";
39 license = licenses.mit;
40 maintainers = with maintainers; [ dotlambda valodim ];
41 };
42}