2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cython
|
|
|
|
, matplotlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycocotools";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.0.3";
|
2021-04-25 03:57:28 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-OCkCSTABN3EVZSGkuNtLOu9ZBVbPo6jdP6sCfTmyFeE=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cython
|
|
|
|
matplotlib
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pycocotools.coco"
|
|
|
|
"pycocotools.cocoeval"
|
|
|
|
];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Official APIs for the MS-COCO dataset";
|
|
|
|
homepage = "https://github.com/cocodataset/cocoapi/tree/master/PythonAPI";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ hexa piegames ];
|
|
|
|
};
|
|
|
|
}
|