2019-02-11 08:31:43 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, libGL
|
|
|
|
, libX11
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "moderngl";
|
2019-11-19 14:35:37 +00:00
|
|
|
version = "5.5.4";
|
2019-02-11 08:31:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-19 14:35:37 +00:00
|
|
|
sha256 = "08badabb6a1bbc9aa9e65fae8ecd3275d8342cb45d9c457b19e32b3312a8b663";
|
2019-02-11 08:31:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
buildInputs = [ libGL libX11 ];
|
|
|
|
|
|
|
|
# Tests need a display to run.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/moderngl/moderngl";
|
2019-02-11 08:31:43 +00:00
|
|
|
description = "High performance rendering for Python 3";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux; # should be mesaPlatforms, darwin build breaks.
|
|
|
|
maintainers = with maintainers; [ c0deaddict ];
|
|
|
|
};
|
|
|
|
}
|