2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, oldest-supported-numpy
|
|
|
|
, scipy
|
|
|
|
, numba
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "quaternion";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2022.4.4";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moble";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-fgyi50purfqUIe7zuz/52K6Sw3TjuvAX0EnzkXD//B4=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
oldest-supported-numpy
|
|
|
|
numba
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A package add built-in support for quaternions to numpy";
|
|
|
|
homepage = "https://github.com/moble/quaternion";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ocfox ];
|
|
|
|
};
|
|
|
|
}
|