python311Packages.pyglm: refactor
- normalize pname - add meta.changelog - adopt pypa build - enable tests
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user