depot/third_party/nixpkgs/pkgs/development/python-modules/pyglm/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

40 lines
825 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyglm";
version = "2.7.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Zuzu-Typ";
repo = "PyGLM";
rev = "refs/tags/${version}";
hash = "sha256-nCkwYZLibQcmlF1Nvv2I6qi+97ue7Q1HVxpw32G5qpo=";
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 ];
};
}