python3Packages.pyfritzhome: 0.4.2 -> 0.6.0

This commit is contained in:
Fabian Affolter 2021-01-28 00:26:29 +01:00
parent 15a64b2fac
commit fb664e15f5

View File

@ -1,20 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder { lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests , requests
, nose, mock }: , nose
, mock
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyfritzhome"; pname = "pyfritzhome";
version = "0.4.2"; version = "0.6.0";
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.5";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "hthiery";
sha256 = "0ncyv8svw0fhs01ijjkb1gcinb3jpyjvv9xw1bhnf4ri7b27g6ww"; repo = "python-fritzhome";
rev = version;
sha256 = "1wzys84hxrjcg86fcn7f7i2i6979qwcpny2afk5rvwljh8f7bli5";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [ requests ];
requests
];
checkInputs = [ checkInputs = [
mock mock
@ -25,6 +30,8 @@ buildPythonPackage rec {
nosetests --with-coverage nosetests --with-coverage
''; '';
pythonImportsCheck = [ "pyfritzhome" ];
meta = with lib; { meta = with lib; {
description = "Python Library to access AVM FRITZ!Box homeautomation"; description = "Python Library to access AVM FRITZ!Box homeautomation";
homepage = "https://github.com/hthiery/python-fritzhome"; homepage = "https://github.com/hthiery/python-fritzhome";