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