Merge pull request #245046 from tpwrules/update-moderngl

This commit is contained in:
Janik 2023-08-04 21:29:16 +02:00 committed by GitHub
commit c1a2af4f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
{ lib
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
@ -11,14 +12,14 @@
}:
buildPythonPackage rec {
pname = "moderngl_window";
version = "2.4.2";
pname = "moderngl-window";
version = "2.4.4";
src = fetchFromGitHub {
owner = "moderngl";
repo = pname;
repo = "moderngl_window";
rev = "refs/tags/${version}";
hash = "sha256-jsASGYrsH9UNanswX2bZyWS3co/2Y1joaQ98virWcBE=";
hash = "sha256-mg3j5ZoMwdk39L5xjcoEJo9buqssM1VLJtndSFsuCB0=";
};
propagatedBuildInputs = [ numpy moderngl pyglet pillow pyrr glcontext ];
@ -28,11 +29,14 @@ buildPythonPackage rec {
# 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;
platforms = platforms.linux; # should be mesaPlatforms, darwin build breaks.
broken = stdenv.isDarwin; # darwin build breaks
platforms = platforms.mesaPlatforms;
maintainers = with maintainers; [ c0deaddict ];
};
}