2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
oldest-supported-numpy,
|
|
|
|
scipy,
|
|
|
|
numba,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "quaternion";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2023.0.4";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moble";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-i+UPi+DrhItplfc6EvDhmr3CEH2/cHODoHVBElM7jY8=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
oldest-supported-numpy
|
|
|
|
numba
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Package add built-in support for quaternions to numpy";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/moble/quaternion";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ocfox ];
|
|
|
|
};
|
|
|
|
}
|