2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, pytestCheckHook, requests }:
|
2018-01-15 01:50:20 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fritzconnection";
|
2021-05-01 20:28:26 +00:00
|
|
|
version = "1.5.0";
|
2018-01-15 01:50:20 +00:00
|
|
|
|
2021-01-16 13:16:21 +00:00
|
|
|
# no tests on PyPI
|
2020-03-26 21:14:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kbr";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-01 20:28:26 +00:00
|
|
|
sha256 = "sha256-Iw7R+39rpoCTrRD74kBihF7AMcJWxy2xdPhKLznWdlo=";
|
2018-01-15 01:50:20 +00:00
|
|
|
};
|
|
|
|
|
2021-01-16 13:16:21 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-01-15 01:50:20 +00:00
|
|
|
|
2020-03-26 21:14:49 +00:00
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
2021-01-16 13:16:21 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2018-01-15 01:50:20 +00:00
|
|
|
|
2021-03-07 18:27:10 +00:00
|
|
|
pythonImportsCheck = [ "fritzconnection" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-03-07 18:27:10 +00:00
|
|
|
description = "Python-Tool to communicate with the AVM Fritz!Box";
|
2021-01-16 13:16:21 +00:00
|
|
|
homepage = "https://github.com/kbr/fritzconnection";
|
2021-03-07 18:27:10 +00:00
|
|
|
changelog = "https://fritzconnection.readthedocs.io/en/${version}/sources/changes.html";
|
2018-01-15 01:50:20 +00:00
|
|
|
license = licenses.mit;
|
2020-03-26 21:14:49 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda valodim ];
|
2018-01-15 01:50:20 +00:00
|
|
|
};
|
|
|
|
}
|