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