2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, 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";
|
|
|
|
version = "2.7.1";
|
|
|
|
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}";
|
|
|
|
hash = "sha256-nCkwYZLibQcmlF1Nvv2I6qi+97ue7Q1HVxpw32G5qpo=";
|
2023-08-04 22:07:22 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"glm"
|
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Zuzu-Typ/PyGLM";
|
|
|
|
description = "An 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 ];
|
|
|
|
};
|
|
|
|
}
|