01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
37 lines
706 B
Nix
37 lines
706 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cython
|
|
, matplotlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycocotools";
|
|
version = "2.0.6";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-f+CJsFzBjoBtzzvXZHCNhtq5IqEA83NOt3+3enCh0Yw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|