2021-04-22 23:58:47 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cython
|
|
|
|
, matplotlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycocotools";
|
2022-09-18 10:28:31 +01:00
|
|
|
version = "2.0.5";
|
2021-04-22 23:58:47 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-18 10:28:31 +01:00
|
|
|
sha256 = "sha256-QdH7Bi31urXrw+kpcUVaoIlHnnzRBVMnjKVGKLncm/U=";
|
2021-04-22 23:58:47 +01: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;
|
2022-01-09 15:01:51 +00:00
|
|
|
maintainers = with maintainers; [ piegames ];
|
2021-04-22 23:58:47 +01:00
|
|
|
};
|
|
|
|
}
|