2025-05-31 15:40:10 +00:00

39 lines
711 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
cython,
matplotlib,
}:
buildPythonPackage rec {
pname = "pycocotools";
version = "2.0.9";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-uoLlUGcKoRgqkR+z5fDoM0VDIERDhwe9UsJRnNoWhyo=";
};
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; [ piegames ];
};
}