python310Packages.moderngl: disable on older Python releases

- add pythonImportsCheck
This commit is contained in:
Fabian Affolter
2022-10-28 09:58:07 +02:00
committed by GitHub
parent 01b1fa1892
commit b796d5b3ba
@@ -1,34 +1,46 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, libGL
, libX11
, glcontext
, pythonOlder
}:
buildPythonPackage rec {
pname = "moderngl";
version = "5.7.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-NDTZ4comjJY/dEvrTdxHR88fQ1lZU2zSWZ43f7YqvT8=";
hash = "sha256-NDTZ4comjJY/dEvrTdxHR88fQ1lZU2zSWZ43f7YqvT8=";
};
disabled = !isPy3k;
buildInputs = [
libGL
libX11
];
buildInputs = [ libGL libX11 ];
propagatedBuildInputs = [ glcontext ];
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";
description = "High performance rendering for Python 3";
license = licenses.mit;
platforms = platforms.linux; # should be mesaPlatforms, darwin build breaks.
maintainers = with maintainers; [ c0deaddict ];
# should be mesaPlatforms, darwin build breaks.
platforms = platforms.linux;
};
}