Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 29 lines 712 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k, requests }: 2 3buildPythonPackage rec { 4 pname = "pynanoleaf"; 5 version = "0.0.5"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "2ced000e3c37f4e2ce0ea177d924af71c97007de9e4fd0ef37dcd7b4a6d1b622"; 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}