2018-01-15 01:50:20 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, lxml, requests, tkinter }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fritzconnection";
|
2019-10-24 06:47:31 +00:00
|
|
|
version = "0.8.4";
|
2018-01-15 01:50:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 06:47:31 +00:00
|
|
|
sha256 = "adc629a48b50700f5478f69436e4b78c8792a9260cc674cccef15ffe68eb0643";
|
2018-01-15 01:50:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace fritzconnection/test.py \
|
|
|
|
--replace "from fritzconnection import" "from .fritzconnection import"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ lxml requests tkinter ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python-Tool to communicate with the AVM FritzBox using the TR-064 protocol";
|
|
|
|
homepage = https://bitbucket.org/kbr/fritzconnection;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|