1{ stdenv, buildPythonPackage, fetchPypi, lxml, requests, tkinter, isPy38 }:
2
3buildPythonPackage rec {
4 pname = "fritzconnection";
5 version = "0.8.4";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "adc629a48b50700f5478f69436e4b78c8792a9260cc674cccef15ffe68eb0643";
10 };
11
12 prePatch = ''
13 substituteInPlace fritzconnection/test.py \
14 --replace "from fritzconnection import" "from .fritzconnection import"
15 '';
16
17 propagatedBuildInputs = [ lxml requests tkinter ];
18
19 meta = with stdenv.lib; {
20 description = "Python-Tool to communicate with the AVM FritzBox using the TR-064 protocol";
21 homepage = https://bitbucket.org/kbr/fritzconnection;
22 license = licenses.mit;
23 maintainers = with maintainers; [ dotlambda ];
24 broken = isPy38;
25 };
26}