Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 32 lines 681 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.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "0x8xblc3zybp7jw9cscpm4r5pmmilj9l4yi1rkxyf0y80kchlxq4"; 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/cprogrammer1994/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}