Unverified Commit e2f03189 authored by natsukium's avatar natsukium
Browse files

python311Packages.pyglm: refactor

- normalize pname
- add meta.changelog
- adopt pypa build
- enable tests
parent 18c1b4fa
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
{ 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 ];
  };