Files
nixpkgs/pkgs/development/python-modules/pyglm/default.nix
T
Peder Bergebakken Sundt ebc2389134 treewide: remove refs/tags/ from github release meta.changelog urls
diff of `jq <packages.json 'to_entries[]|"\(.key) \(.value.meta.changelog)"' -r`:

https://gist.github.com/pbsds/49b2e2ae5c9b967a0972bbc3c2597c12
2024-08-29 22:45:00 -04:00

36 lines
846 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyglm";
version = "2.7.1-rev1";
pyproject = true;
src = fetchFromGitHub {
owner = "Zuzu-Typ";
repo = "PyGLM";
rev = "refs/tags/${version}";
hash = "sha256-MA/NoeKv6yxXL9A36SBqU7GNuPbCKDvxpOkWP8OmED4=";
fetchSubmodules = true;
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "glm" ];
meta = with lib; {
homepage = "https://github.com/Zuzu-Typ/PyGLM";
description = "OpenGL Mathematics (GLM) library for Python written in C++";
changelog = "https://github.com/Zuzu-Typ/PyGLM/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
license = licenses.zlib;
maintainers = with maintainers; [ sund3RRR ];
};
}