1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, pytestCheckHook
6, numpy
7, scipy
8, sympy
9}:
10
11buildPythonPackage rec {
12 pname = "transforms3d";
13 version = "0.4.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "matthew-brett";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-GgnjvwAfyxnDfBGvgMFIPPbR88BWFiNGrScVORygq94=";
23 };
24
25 propagatedBuildInputs = [ numpy sympy ];
26
27 nativeCheckInputs = [ pytestCheckHook scipy ];
28 pythonImportsCheck = [ "transforms3d" ];
29
30 meta = with lib; {
31 homepage = "https://matthew-brett.github.io/transforms3d";
32 description = "Convert between various geometric transformations";
33 license = licenses.bsd2;
34 maintainers = with maintainers; [ bcdarwin ];
35 };
36}