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