2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
cython,
|
|
|
|
matplotlib,
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycocotools";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "2.0.7";
|
2021-04-25 03:57:28 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-2ot4FRlu6/Ctq/Z/zEWRJsvGSYu8arH9FEw3FGXYaHk=";
|
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;
|
2022-01-13 20:06:32 +00:00
|
|
|
maintainers = with maintainers; [ piegames ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|