depot/third_party/nixpkgs/pkgs/development/python-modules/moderngl_window/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

38 lines
882 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, numpy
, moderngl
, pyglet
, pillow
, pyrr
, glcontext
}:
buildPythonPackage rec {
pname = "moderngl_window";
version = "2.4.2";
src = fetchFromGitHub {
owner = "moderngl";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-jsASGYrsH9UNanswX2bZyWS3co/2Y1joaQ98virWcBE=";
};
propagatedBuildInputs = [ numpy moderngl pyglet pillow pyrr glcontext ];
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 ];
};
}