f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
38 lines
711 B
Nix
38 lines
711 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
cython,
|
|
matplotlib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycocotools";
|
|
version = "2.0.8";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-jyvO23hromw2ejaA+cTrWyrZ3MsrNOrrIF4KAh4d+40=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|