nixpkgs/pkgs/development/python-modules/imantics/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
879 B
Nix

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