2021-09-29 09:59:40 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
}:
|
2018-01-15 02:50:20 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fritzconnection";
|
2022-02-02 20:09:27 +01:00
|
|
|
version = "1.9.1";
|
2021-11-14 20:17:11 +01:00
|
|
|
format = "setuptools";
|
2021-09-29 09:59:40 +02:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-01-15 02:50:20 +01:00
|
|
|
|
2020-03-26 22:14:49 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kbr";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-02 20:09:27 +01:00
|
|
|
sha256 = "sha256-wapZ4lCG0tfE+LbFVeIxVlbMJN/sSwIeYK5GLCqoWLs=";
|
2018-01-15 02:50:20 +01:00
|
|
|
};
|
|
|
|
|
2021-11-14 20:17:11 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
2020-03-26 22:14:49 +01:00
|
|
|
|
2021-11-14 20:17:11 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-01-15 02:50:20 +01:00
|
|
|
|
2021-11-14 20:17:11 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"fritzconnection"
|
|
|
|
];
|
2021-03-07 19:27:10 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-09-29 09:59:40 +02:00
|
|
|
description = "Python module to communicate with the AVM Fritz!Box";
|
2021-01-16 14:16:21 +01:00
|
|
|
homepage = "https://github.com/kbr/fritzconnection";
|
2021-03-07 19:27:10 +01:00
|
|
|
changelog = "https://fritzconnection.readthedocs.io/en/${version}/sources/changes.html";
|
2018-01-15 02:50:20 +01:00
|
|
|
license = licenses.mit;
|
2020-03-26 22:14:49 +01:00
|
|
|
maintainers = with maintainers; [ dotlambda valodim ];
|
2018-01-15 02:50:20 +01:00
|
|
|
};
|
|
|
|
}
|