nixpkgs/pkgs/development/python-modules/quaternion/default.nix
2023-09-06 17:13:07 +02:00

34 lines
669 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, oldest-supported-numpy
, scipy
, numba
}:
buildPythonPackage rec {
pname = "quaternion";
version = "2022.4.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "moble";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-iLjVQ6eGwpLQXi8Sr5ShJdXMqYNclGEuq/oxR4ExDLA=";
};
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 ];
};
}