about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/fritzconnection/default.nix
blob: ced7d7bdcd4ab5f02e3575503e5916e79b5f2847 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, buildPythonPackage, fetchPypi, lxml, requests, tkinter }:

buildPythonPackage rec {
  pname = "fritzconnection";
  version = "0.6.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "14g3sxprq65lxbgkf3rjgb1bjqnj2jc5p1swlq9sk9gwnl6ca3ds";
  };

  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 ];
  };
}