2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-01-02 11:29:13 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2022-01-13 20:06:32 +00:00
|
|
|
, pythonOlder
|
2024-01-02 11:29:13 +00:00
|
|
|
, matplotlib
|
2022-01-13 20:06:32 +00:00
|
|
|
, numpy
|
2024-01-02 11:29:13 +00:00
|
|
|
, pendulum
|
|
|
|
, pillow
|
|
|
|
, poetry-core
|
|
|
|
, pyquaternion
|
2022-01-13 20:06:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bbox";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.9.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "varunagrawal";
|
|
|
|
repo = pname;
|
|
|
|
# matches 0.9.4 on PyPi + tests
|
|
|
|
rev = "d3f07ed0e38b6015cf4181e3b3edae6a263f8565";
|
|
|
|
hash = "sha256-FrJ8FhlqwmnEB/QvPlkDfqZncNGPhwY9aagM9yv1LGs=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyquaternion numpy ];
|
2024-01-02 11:29:13 +00:00
|
|
|
buildInputs = [ poetry-core ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
matplotlib
|
|
|
|
pendulum
|
|
|
|
pillow
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-01-13 20:06:32 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|