56 lines
899 B
Nix
56 lines
899 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
numpy,
|
|
setuptools,
|
|
|
|
# dependencies
|
|
scipy,
|
|
|
|
# tests
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "quaternion";
|
|
version = "2024.0.10";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "moble";
|
|
repo = "quaternion";
|
|
tag = "v${version}";
|
|
hash = "sha256-jkaSxnq1i5DZP7unbKktJWFmsDNc1ZGOKMcN9SiObMg=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
numpy
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
pythonImportsCheck = [ "quaternion" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
description = "Package add built-in support for quaternions to numpy";
|
|
homepage = "https://github.com/moble/quaternion";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ ocfox ];
|
|
};
|
|
}
|