2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
numpy,
|
|
|
|
nose,
|
2022-01-13 20:06:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyquaternion";
|
|
|
|
version = "0.9.9";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-sfYa8hnLL+lmtft5oZISTy5jo/end6w8rfKVexqBvqg=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# The VERSION.txt file is required for setup.py
|
|
|
|
# See: https://github.com/KieranWynn/pyquaternion/blob/master/setup.py#L14-L15
|
|
|
|
postPatch = ''
|
|
|
|
echo "${version}" > VERSION.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ nose ];
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [ "pyquaternion" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library for representing and using quaternions";
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "http://kieranwynn.github.io/pyquaternion/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lucasew ];
|
|
|
|
};
|
|
|
|
}
|