2020-05-03 17:38:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-05-24 13:37:59 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
2020-05-03 17:38:23 +00:00
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, sympy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "transforms3d";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.4.1";
|
|
|
|
format = "setuptools";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matthew-brett";
|
|
|
|
repo = pname;
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-GgnjvwAfyxnDfBGvgMFIPPbR88BWFiNGrScVORygq94=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy sympy ];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook scipy ];
|
|
|
|
pythonImportsCheck = [ "transforms3d" ];
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://matthew-brett.github.io/transforms3d";
|
|
|
|
description = "Convert between various geometric transformations";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|