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