1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "pyglm";
11 version = "2.7.1-rev1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "Zuzu-Typ";
16 repo = "PyGLM";
17 rev = "refs/tags/${version}";
18 hash = "sha256-MA/NoeKv6yxXL9A36SBqU7GNuPbCKDvxpOkWP8OmED4=";
19 fetchSubmodules = true;
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 pythonImportsCheck = [ "glm" ];
27
28 meta = with lib; {
29 homepage = "https://github.com/Zuzu-Typ/PyGLM";
30 description = "OpenGL Mathematics (GLM) library for Python written in C++";
31 changelog = "https://github.com/Zuzu-Typ/PyGLM/releases/tag/${src.rev}";
32 license = licenses.zlib;
33 maintainers = with maintainers; [ sund3RRR ];
34 };
35}