nixpkgs/pkgs/development/python-modules/pyfritzhome/default.nix
2022-04-27 00:23:02 +02:00

47 lines
805 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
, nose
, mock
}:
buildPythonPackage rec {
pname = "pyfritzhome";
version = "0.6.5";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "hthiery";
repo = "python-fritzhome";
rev = version;
hash = "sha256-0wfC4lQeTghN2uDUO8Rn2+G8BYOh2UfCZBDJmTw6Lb0=";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
mock
nose
];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [
"pyfritzhome"
];
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 ];
};
}