1{ stdenv, buildPythonPackage, fetchPypi, lxml, requests, tkinter }: 2 3buildPythonPackage rec { 4 pname = "fritzconnection"; 5 version = "0.6.5"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "14g3sxprq65lxbgkf3rjgb1bjqnj2jc5p1swlq9sk9gwnl6ca3ds"; 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 }; 25}