2019-11-02 13:12:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, numpy
|
|
|
|
, moderngl
|
|
|
|
, pyglet
|
|
|
|
, pillow
|
|
|
|
, pyrr
|
2021-04-30 14:11:46 +00:00
|
|
|
, glcontext
|
2019-11-02 13:12:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "moderngl_window";
|
2020-04-02 00:28:32 +00:00
|
|
|
version = "2.1.0";
|
2019-11-02 13:12:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moderngl";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-04-02 00:28:32 +00:00
|
|
|
sha256 = "1p03j91pk2bwycd13p0qi8kns1sf357180hd2mkaip8mfaf33x3q";
|
2019-11-02 13:12:15 +00:00
|
|
|
};
|
|
|
|
|
2021-04-30 14:11:46 +00:00
|
|
|
propagatedBuildInputs = [ numpy moderngl pyglet pillow pyrr glcontext ];
|
2019-11-02 13:12:15 +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 ];
|
|
|
|
};
|
|
|
|
}
|