2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, oldest-supported-numpy
|
|
|
|
, scipy
|
|
|
|
, numba
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "quaternion";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2023.0.3";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moble";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-vSkFHYXcT14aW3OTfqYymVQbpWnKFEVkhh3IQTi5xS4=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|