2022-01-07 21:33:09 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-11-17 07:51:47 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2022-01-07 21:33:09 +01:00
|
|
|
, pythonOlder
|
2023-11-17 07:51:47 +01:00
|
|
|
, matplotlib
|
2022-01-07 21:33:09 +01:00
|
|
|
, numpy
|
2023-11-17 07:51:47 +01:00
|
|
|
, pendulum
|
|
|
|
, pillow
|
2023-11-17 07:42:09 +01:00
|
|
|
, poetry-core
|
2023-11-17 07:51:47 +01:00
|
|
|
, pyquaternion
|
2022-01-07 21:33:09 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bbox";
|
2023-09-15 14:05:50 +02:00
|
|
|
version = "0.9.4";
|
2023-11-17 07:42:09 +01:00
|
|
|
pyproject = true;
|
2022-01-07 21:33:09 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2023-11-17 07:51:47 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "varunagrawal";
|
|
|
|
repo = pname;
|
|
|
|
# matches 0.9.4 on PyPi + tests
|
|
|
|
rev = "d3f07ed0e38b6015cf4181e3b3edae6a263f8565";
|
|
|
|
hash = "sha256-FrJ8FhlqwmnEB/QvPlkDfqZncNGPhwY9aagM9yv1LGs=";
|
2022-01-07 21:33:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyquaternion numpy ];
|
2023-11-17 07:42:09 +01:00
|
|
|
buildInputs = [ poetry-core ];
|
|
|
|
|
2023-11-17 07:51:47 +01:00
|
|
|
nativeCheckInputs = [
|
|
|
|
matplotlib
|
|
|
|
pendulum
|
|
|
|
pillow
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-01-07 21:33:09 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "bbox" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for 2D/3D bounding boxes";
|
|
|
|
homepage = "https://github.com/varunagrawal/bbox";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lucasew ];
|
|
|
|
};
|
|
|
|
}
|