Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 32 lines 674 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.3"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "1k2yf2yglzx65gcv2bqql6w6lmgyp3f1jz4ddq9vylf09a8j7fga"; 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}