1{ 2 lib, 3 buildPythonPackage, 4 isPy3k, 5 fetchPypi, 6 python, 7}: 8 9buildPythonPackage rec { 10 pname = "pyhomematic"; 11 version = "0.1.78"; 12 format = "setuptools"; 13 14 disabled = !isPy3k; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-uB9aDa1urIwL2DBdBwPi0sHWPW7SUZ3EaAjuMLSOudc="; 19 }; 20 21 checkPhase = '' 22 ${python.interpreter} -m unittest 23 ''; 24 25 pythonImportsCheck = [ "pyhomematic" ]; 26 27 meta = with lib; { 28 description = "Python 3 Interface to interact with Homematic devices"; 29 homepage = "https://github.com/danielperna84/pyhomematic"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ dotlambda ]; 32 }; 33}