1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, requests 6, nose 7, mock 8}: 9 10buildPythonPackage rec { 11 pname = "pyfritzhome"; 12 version = "0.6.7"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "hthiery"; 19 repo = "python-fritzhome"; 20 rev = version; 21 hash = "sha256-cRG+Dm3KG6no3/OQCZkvISW1yE5azdDVTa5oTV1sRpk="; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 ]; 27 28 checkInputs = [ 29 mock 30 nose 31 ]; 32 33 checkPhase = '' 34 nosetests 35 ''; 36 37 pythonImportsCheck = [ 38 "pyfritzhome" 39 ]; 40 41 meta = with lib; { 42 description = "Python Library to access AVM FRITZ!Box homeautomation"; 43 homepage = "https://github.com/hthiery/python-fritzhome"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ hexa ]; 46 }; 47}