3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyfritzhome/default.nix
2021-06-30 15:01:16 +02:00

42 lines
770 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
, nose
, mock
}:
buildPythonPackage rec {
pname = "pyfritzhome";
version = "0.6.2";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "hthiery";
repo = "python-fritzhome";
rev = version;
sha256 = "1hwxq9w5qmiky8gpp623nabmydr3yv6hvgzk24fdbmkglfp6ja1v";
};
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 ];
};
}