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