diff --git a/pkgs/development/python-modules/moderngl-window/default.nix b/pkgs/development/python-modules/moderngl-window/default.nix index 073c99026b9a..98f091927bdb 100644 --- a/pkgs/development/python-modules/moderngl-window/default.nix +++ b/pkgs/development/python-modules/moderngl-window/default.nix @@ -3,49 +3,53 @@ stdenv, buildPythonPackage, fetchFromGitHub, + + # build-system setuptools, - glfw, - mesa, + + # dependencies moderngl, numpy, pillow, - pygame, pyglet, - pyqt5, - pyrr, + pyglm, + + # optional-dependencies + trimesh, + scipy, + glfw, + pygame, pysdl2, pyside2, - pythonOlder, - scipy, - trimesh, + pyqt5, + + mesa, }: buildPythonPackage rec { pname = "moderngl-window"; - version = "2.4.6"; + version = "3.0.0"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "moderngl"; repo = "moderngl_window"; rev = "refs/tags/${version}"; - hash = "sha256-zTygSXU/vQZaFCuHbRBpO9/BYYA2UOid+wvhyc2bWMI="; + hash = "sha256-V6QQCQcSSEt11+Xv6HtWZSH+/nPFRZZK1ThQJipIT0M="; }; pythonRelaxDeps = [ "pillow" ]; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ - numpy + dependencies = [ moderngl - pyglet + numpy pillow - pyrr + pyglet + pyglm ]; optional-dependencies = { @@ -65,12 +69,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "moderngl_window" ]; - meta = with lib; { + meta = { description = "Cross platform helper library for ModernGL making window creation and resource loading simple"; homepage = "https://github.com/moderngl/moderngl-window"; changelog = "https://github.com/moderngl/moderngl-window/blob/${version}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ c0deaddict ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ c0deaddict ]; inherit (mesa.meta) platforms; broken = stdenv.hostPlatform.isDarwin; };