2023-08-04 22:07:22 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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 {
|
2023-08-04 22:07:22 +00:00
|
|
|
pname = "moderngl-window";
|
|
|
|
version = "2.4.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moderngl";
|
2023-08-04 22:07:22 +00:00
|
|
|
repo = "moderngl_window";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-mg3j5ZoMwdk39L5xjcoEJo9buqssM1VLJtndSFsuCB0=";
|
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;
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
pythonImportsCheck = [ "moderngl_window" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2023-08-04 22:07:22 +00:00
|
|
|
broken = stdenv.isDarwin; # darwin build breaks
|
|
|
|
platforms = platforms.mesaPlatforms;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ c0deaddict ];
|
|
|
|
};
|
|
|
|
}
|