410b979fe2
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
47 lines
911 B
Nix
47 lines
911 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, libGL
|
|
, libX11
|
|
, glcontext
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "moderngl";
|
|
version = "5.8.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-li7QA9jXZL0z4C508bOxwMdaG5L1HwONKhMJwG9OXLg=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|