depot/third_party/nixpkgs/pkgs/development/python-modules/moderngl_window/default.nix

43 lines
962 B
Nix
Raw Normal View History

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