Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 688 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, libGL 6, libX11 7}: 8 9buildPythonPackage rec { 10 pname = "moderngl"; 11 version = "5.5.4"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "08badabb6a1bbc9aa9e65fae8ecd3275d8342cb45d9c457b19e32b3312a8b663"; 16 }; 17 18 disabled = !isPy3k; 19 20 buildInputs = [ libGL libX11 ]; 21 22 # Tests need a display to run. 23 doCheck = false; 24 25 meta = with lib; { 26 homepage = "https://github.com/moderngl/moderngl"; 27 description = "High performance rendering for Python 3"; 28 license = licenses.mit; 29 platforms = platforms.linux; # should be mesaPlatforms, darwin build breaks. 30 maintainers = with maintainers; [ c0deaddict ]; 31 }; 32}