1{ lib 2, buildPythonPackage 3, fetchPypi 4, libGL 5, libX11 6, glcontext 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "moderngl"; 12 version = "5.8.2"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-tmwY1/SrepS+P5655MpoNurR2lAtYugbf3pIFQ4u05E="; 20 }; 21 22 buildInputs = [ 23 libGL 24 libX11 25 ]; 26 27 propagatedBuildInputs = [ 28 glcontext 29 ]; 30 31 # Tests need a display to run. 32 doCheck = false; 33 34 pythonImportsCheck = [ 35 "moderngl" 36 ]; 37 38 meta = with lib; { 39 description = "High performance rendering for Python"; 40 homepage = "https://github.com/moderngl/moderngl"; 41 changelog = "https://github.com/moderngl/moderngl/releases/tag/${version}"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ c0deaddict ]; 44 # should be mesaPlatforms, darwin build breaks. 45 platforms = platforms.linux; 46 }; 47}