Files
nixpkgs/pkgs/development/python-modules/moderngl/default.nix
T
Alyssa Ross d4a72a3935 lib.platforms.mesaPlatforms: remove
Mesa is a package like any other.  There's no reason for it to be a
special case with its platforms listed in lib, because if other
packages want to refer to mesa's platforms, they can access the
platforms from the package meta like they would for any other package.
2024-08-31 10:28:31 +02:00

48 lines
949 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
libGL,
libX11,
setuptools,
glcontext,
pythonOlder,
}:
buildPythonPackage rec {
pname = "moderngl";
version = "5.11.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-rEVNXqhDHy9/DJXijaIEPb0wNTjChH/uBXA55AfdGRE=";
};
build-system = [ setuptools ];
buildInputs = [
libGL
libX11
];
dependencies = [ 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 mesa.meta.platforms, darwin build breaks.
platforms = platforms.linux;
};
}