1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 matplotlib,
8 numpy,
9 pendulum,
10 pillow,
11 poetry-core,
12 pyquaternion,
13}:
14
15buildPythonPackage rec {
16 pname = "bbox";
17 version = "0.9.4";
18 pyproject = true;
19
20 disabled = pythonOlder "3.6";
21
22 src = fetchFromGitHub {
23 owner = "varunagrawal";
24 repo = pname;
25 # matches 0.9.4 on PyPi + tests
26 rev = "d3f07ed0e38b6015cf4181e3b3edae6a263f8565";
27 hash = "sha256-FrJ8FhlqwmnEB/QvPlkDfqZncNGPhwY9aagM9yv1LGs=";
28 };
29
30 nativeBuildInputs = [ poetry-core ];
31
32 propagatedBuildInputs = [
33 pyquaternion
34 numpy
35 ];
36
37 nativeCheckInputs = [
38 matplotlib
39 pendulum
40 pillow
41 pytestCheckHook
42 ];
43
44 disabledTests = [
45 # performance test, racy on busy machines
46 "test_multi_jaccard_index_2d_performance"
47 ];
48
49 pythonImportsCheck = [ "bbox" ];
50
51 meta = with lib; {
52 description = "Python library for 2D/3D bounding boxes";
53 homepage = "https://github.com/varunagrawal/bbox";
54 license = licenses.mit;
55 maintainers = with maintainers; [ lucasew ];
56 };
57}