1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 isPy3k, 6 requests, 7}: 8 9buildPythonPackage rec { 10 pname = "pynanoleaf"; 11 version = "0.1.1"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "32a083759c4f99e019e0013670487841f8edf807c7a07742a971fa18707072a7"; 17 }; 18 19 disabled = !isPy3k; 20 21 propagatedBuildInputs = [ requests ]; 22 23 # pynanoleaf does not contain tests 24 doCheck = false; 25 26 pythonImportsCheck = [ "pynanoleaf" ]; 27 28 meta = with lib; { 29 homepage = "https://github.com/Oro/pynanoleaf"; 30 description = "A Python3 wrapper for the Nanoleaf API, capable of controlling both Nanoleaf Aurora and Nanoleaf Canvas"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ oro ]; 33 }; 34}