depot/third_party/nixpkgs/pkgs/development/python-modules/imantics/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

46 lines
916 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
setuptools,
numpy,
opencv4,
lxml,
xmljson,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "imantics";
version = "0.1.12";
pyproject = true;
src = fetchFromGitHub {
owner = "jsbroks";
repo = "imantics";
rev = "76d81036d8f92854d63ad9938dd76c718f8b482e";
sha256 = "1zv2gj8cbakhh2fyr2611cbqhfk37a56x973ny9n43y70n26pzm8";
};
pythonRemoveDeps = [ "opencv-python" ];
build-system = [ setuptools ];
dependencies = [
numpy
opencv4
lxml
xmljson
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "imantics" ];
meta = with lib; {
description = "Convert and visualize many annotation formats for object dectection and localization";
homepage = "https://github.com/jsbroks/imantics";
license = with licenses; [ mit ];
maintainers = [ maintainers.rakesh4g ];
};
}