2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, numpy
|
|
|
|
, moderngl
|
|
|
|
, pyglet
|
|
|
|
, pillow
|
|
|
|
, pyrr
|
2021-05-20 23:08:51 +00:00
|
|
|
, glcontext
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "moderngl_window";
|
2022-01-26 04:04:25 +00:00
|
|
|
version = "2.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moderngl";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-01-26 04:04:25 +00:00
|
|
|
sha256 = "12a5nl01c9b1ww7sj7i02xa7zmlrgg8jvi8cz004hw98kjcs9li8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [ numpy moderngl pyglet pillow pyrr glcontext ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
# Tests need a display to run.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/moderngl/moderngl_window";
|
|
|
|
description = "Cross platform helper library for ModernGL making window creation and resource loading simple";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux; # should be mesaPlatforms, darwin build breaks.
|
|
|
|
maintainers = with maintainers; [ c0deaddict ];
|
|
|
|
};
|
|
|
|
}
|