5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
42 lines
962 B
Nix
42 lines
962 B
Nix
{ stdenv
|
|
, lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy3k
|
|
, numpy
|
|
, moderngl
|
|
, pyglet
|
|
, pillow
|
|
, pyrr
|
|
, glcontext
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "moderngl-window";
|
|
version = "2.4.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "moderngl";
|
|
repo = "moderngl_window";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-mg3j5ZoMwdk39L5xjcoEJo9buqssM1VLJtndSFsuCB0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ numpy moderngl pyglet pillow pyrr glcontext ];
|
|
|
|
disabled = !isPy3k;
|
|
|
|
# Tests need a display to run.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "moderngl_window" ];
|
|
|
|
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;
|
|
broken = stdenv.isDarwin; # darwin build breaks
|
|
platforms = platforms.mesaPlatforms;
|
|
maintainers = with maintainers; [ c0deaddict ];
|
|
};
|
|
}
|