pythonPackages.imantics: init at 0.1.12

This commit is contained in:
Rakesh Gupta 2020-11-25 12:20:46 +05:30
parent 2c931312ce
commit daff289820
No known key found for this signature in database
GPG Key ID: D7B8FAF123BE276A
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ buildPythonPackage
, fetchFromGitHub
, lib
, numpy
, opencv3
, sphinx_rtd_theme
, lxml
, xmljson
}:
buildPythonPackage rec {
pname = "imantics";
version = "0.1.12";
src = fetchFromGitHub {
owner = "jsbroks";
repo = "imantics";
rev = "76d81036d8f92854d63ad9938dd76c718f8b482e";
sha256 = "1zv2gj8cbakhh2fyr2611cbqhfk37a56x973ny9n43y70n26pzm8";
};
propagatedBuildInputs = [
numpy
opencv3
sphinx_rtd_theme
lxml
xmljson
];
postPatch = ''
substituteInPlace setup.py \
--replace "'opencv-python>=3'," ""
'';
# failing on NixOS
doCheck = false;
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 ];
};
}

View File

@ -2875,6 +2875,8 @@ in {
imagesize = callPackage ../development/python-modules/imagesize { };
imantics = callPackage ../development/python-modules/imantics { };
IMAPClient = callPackage ../development/python-modules/imapclient { };
imaplib2 = callPackage ../development/python-modules/imaplib2 { };