python3Packages.pyopengltk: use finalAttrs

This commit is contained in:
Sigmanificient
2026-01-07 02:19:47 +01:00
parent 8e901b246f
commit 017f71b04e
@@ -7,10 +7,9 @@
pyopengl,
writers,
tkinter,
pyopengltk,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pyopengltk";
version = "0.0.4";
pyproject = true;
@@ -35,9 +34,9 @@ buildPythonPackage rec {
passthru.tests = {
cube = writers.writePython3 "cube" {
libraries = [ pyopengltk ];
libraries = [ finalAttrs.finalPackage ];
doCheck = false;
} (builtins.readFile "${src}/examples/cube.py");
} (builtins.readFile "${finalAttrs.src}/examples/cube.py");
};
meta = {
@@ -48,4 +47,4 @@ buildPythonPackage rec {
# not supported yet, see: https://github.com/jonwright/pyopengltk/issues/12
broken = stdenv.hostPlatform.isDarwin;
};
}
})