depot/third_party/nixpkgs/pkgs/development/python-modules/moderngl/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
909 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
libGL,
libX11,
glcontext,
pythonOlder,
}:
buildPythonPackage rec {
pname = "moderngl";
version = "5.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-EZyNNk3ePNjRwJ8jftSRZhe6dZlUoZUt9GlOUe5PZRE=";
};
buildInputs = [
libGL
libX11
];
propagatedBuildInputs = [ glcontext ];
# Tests need a display to run.
doCheck = false;
pythonImportsCheck = [ "moderngl" ];
meta = with lib; {
description = "High performance rendering for Python";
homepage = "https://github.com/moderngl/moderngl";
changelog = "https://github.com/moderngl/moderngl/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ c0deaddict ];
# should be mesaPlatforms, darwin build breaks.
platforms = platforms.linux;
};
}