at master 906 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "pyglm"; 11 version = "2.8.2"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "Zuzu-Typ"; 16 repo = "PyGLM"; 17 tag = version; 18 hash = "sha256-oLPZ6sCIAt12iolcSBNXEjbHGE4ou+dgoFhB400pyRk="; 19 fetchSubmodules = true; 20 }; 21 22 build-system = [ setuptools ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 # Having the source root in `sys.path` causes import issues 27 preCheck = '' 28 cd test 29 ''; 30 31 pythonImportsCheck = [ 32 "pyglm" 33 "glm" 34 ]; 35 36 meta = with lib; { 37 homepage = "https://github.com/Zuzu-Typ/PyGLM"; 38 description = "OpenGL Mathematics (GLM) library for Python written in C++"; 39 changelog = "https://github.com/Zuzu-Typ/PyGLM/releases/tag/${src.tag}"; 40 license = licenses.zlib; 41 maintainers = with maintainers; [ sund3RRR ]; 42 }; 43}