Files
nixpkgs/pkgs/development/python-modules/moderngl_window/default.nix
T
Thomas Watson d6a8f303ef python3Packages.moderngl-window: 2.4.2 -> 2.4.4
Includes a fix for moderngl 5.8.x currently in nixpkgs.

Enables import testing.

Rename to use - instead of _ in accordance with nixpkgs guidelines.

Corrects use of platform attribute and correctly sets meta.broken.
2023-08-04 08:48:44 -05:00

43 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 ];
};
}