python311Packages.pyglm: refactor

- normalize pname
- add meta.changelog
- adopt pypa build
- enable tests
This commit is contained in:
natsukium
2023-11-12 00:27:01 +09:00
parent 18c1b4fa2f
commit e2f0318961
@@ -1,22 +1,39 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "PyGLM";
pname = "pyglm";
version = "2.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Zuzu-Typ";
repo = "PyGLM";
rev = "${version}";
rev = "refs/tags/${version}";
hash = "sha256-+On4gqfB9hxuINQdcGcrZyOsphfylUNq7tB2uvjsCkE=";
fetchSubmodules = true;
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"glm"
];
meta = with lib; {
homepage = "https://github.com/Zuzu-Typ/PyGLM";
description = "An OpenGL Mathematics (GLM) library for Python written in C++";
changelog = "https://github.com/Zuzu-Typ/PyGLM/releases/tag/${src.rev}";
license = licenses.zlib;
maintainers = with maintainers; [ sund3RRR ];
};