2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildPythonPackage rec {
|
2023-11-16 04:20:00 +00:00
|
|
|
pname = "pyglm";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.7.1-rev1";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Zuzu-Typ";
|
|
|
|
repo = "PyGLM";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-MA/NoeKv6yxXL9A36SBqU7GNuPbCKDvxpOkWP8OmED4=";
|
2023-08-04 22:07:22 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "glm" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Zuzu-Typ/PyGLM";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "OpenGL Mathematics (GLM) library for Python written in C++";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/Zuzu-Typ/PyGLM/releases/tag/${src.rev}";
|
2023-08-04 22:07:22 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ sund3RRR ];
|
|
|
|
};
|
|
|
|
}
|