1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, libGL 6, libX11 7, glcontext 8}: 9 10buildPythonPackage rec { 11 pname = "moderngl"; 12 version = "5.6.4"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "8c6d04559f5e3bf75a18525cd46d213c0f3a8409363718978e6de691bdb551fb"; 17 }; 18 19 disabled = !isPy3k; 20 21 buildInputs = [ libGL libX11 glcontext ]; 22 23 # Tests need a display to run. 24 doCheck = false; 25 26 meta = with lib; { 27 homepage = "https://github.com/moderngl/moderngl"; 28 description = "High performance rendering for Python 3"; 29 license = licenses.mit; 30 platforms = platforms.linux; # should be mesaPlatforms, darwin build breaks. 31 maintainers = with maintainers; [ c0deaddict ]; 32 }; 33}