2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2020-08-20 17:08:02 +00:00
|
|
|
, requests
|
2021-02-05 17:12:51 +00:00
|
|
|
, nose
|
|
|
|
, mock
|
|
|
|
}:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyfritzhome";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "0.6.7";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hthiery";
|
|
|
|
repo = "python-fritzhome";
|
|
|
|
rev = version;
|
2022-09-22 12:36:57 +00:00
|
|
|
hash = "sha256-cRG+Dm3KG6no3/OQCZkvISW1yE5azdDVTa5oTV1sRpk=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-08-20 17:08:02 +00:00
|
|
|
mock
|
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2021-07-03 03:11:41 +00:00
|
|
|
nosetests
|
2020-08-20 17:08:02 +00:00
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyfritzhome"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Library to access AVM FRITZ!Box homeautomation";
|
|
|
|
homepage = "https://github.com/hthiery/python-fritzhome";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|