Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 31 lines 642 B view raw
1{ lib 2, buildPythonPackage 3, isPy3k 4, fetchPypi 5, python 6}: 7 8buildPythonPackage rec { 9 pname = "pyhomematic"; 10 version = "0.1.72"; 11 12 disabled = !isPy3k; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "a1d44103b90418d9c8cde4699a1c671d57d12469be23a45e93bfc00df28ef11b"; 17 }; 18 19 checkPhase = '' 20 ${python.interpreter} -m unittest 21 ''; 22 23 pythonImportsCheck = [ "pyhomematic" ]; 24 25 meta = with lib; { 26 description = "Python 3 Interface to interact with Homematic devices"; 27 homepage = "https://github.com/danielperna84/pyhomematic"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ dotlambda ]; 30 }; 31}