mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 08:20:13 +00:00
Builds have been broken in Hydra since numpy 2. Upstream has fixed this, but has not made a release. This bumps to current `main` in the meantime.
68 lines
1.2 KiB
Nix
68 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
matplotlib,
|
|
numpy,
|
|
pendulum,
|
|
pillow,
|
|
poetry-core,
|
|
pyquaternion,
|
|
loguru,
|
|
hatchling,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "bbox";
|
|
version = "0.9.4-unstable-2025-10-21";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "varunagrawal";
|
|
repo = "bbox";
|
|
rev = "ac3bc3036415337722dcaf46ab59f83b38d19828";
|
|
hash = "sha256-IikvXxIhuZRkODMEiGUsu16GKiwfe62NxE5hOf5OfWk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace bbox/metrics.py \
|
|
--replace-warn round_ round
|
|
'';
|
|
|
|
build-system = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyquaternion
|
|
numpy
|
|
loguru
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
matplotlib
|
|
pendulum
|
|
pillow
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# performance test, racy on busy machines
|
|
"test_multi_jaccard_index_2d_performance"
|
|
];
|
|
|
|
pythonRelaxDeps = [ "numpy" ];
|
|
|
|
pythonImportsCheck = [ "bbox" ];
|
|
|
|
meta = {
|
|
description = "Python library for 2D/3D bounding boxes";
|
|
homepage = "https://github.com/varunagrawal/bbox";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|