depot/third_party/nixpkgs/pkgs/development/python-modules/bbox/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

47 lines
933 B
Nix

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