python3Packages.numpy-quaternion: init at 2024.0.13 (#524057)

This commit is contained in:
kirillrdy
2026-05-26 09:53:40 +00:00
committed by GitHub
2 changed files with 58 additions and 0 deletions
@@ -0,0 +1,56 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
numpy,
setuptools,
# dependencies
scipy,
# tests
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "numpy-quaternion";
version = "2024.0.13";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "moble";
repo = "quaternion";
tag = "v${finalAttrs.version}";
hash = "sha256-W35R+S6yzcKTpKtemjiLzH9v5owduUtos9DyoY28qbc=";
};
build-system = [
hatchling
numpy
setuptools
];
dependencies = [
numpy
scipy
];
pythonImportsCheck = [ "quaternion" ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
meta = {
description = "Built-in support for quaternions in numpy";
homepage = "https://github.com/moble/quaternion";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
})
+2
View File
@@ -11423,6 +11423,8 @@ self: super: with self; {
numpy-groupies = callPackage ../development/python-modules/numpy-groupies { };
numpy-quaternion = callPackage ../development/python-modules/numpy-quaternion { };
numpy-stl = callPackage ../development/python-modules/numpy-stl { };
numpy-typing-compat = callPackage ../development/python-modules/numpy-typing-compat { };