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
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativebuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyquaternion
|
|
|
|
numpy
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
matplotlib
|
|
|
|
pendulum
|
|
|
|
pillow
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
disabledTests = [
|
|
|
|
# performance test, racy on busy machines
|
|
|
|
"test_multi_jaccard_index_2d_performance"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"bbox"
|
|
|
|
];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for 2D/3D bounding boxes";
|
|
|
|
homepage = "https://github.com/varunagrawal/bbox";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lucasew ];
|
|
|
|
};
|
|
|
|
}
|