c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
37 lines
704 B
Nix
37 lines
704 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cython
|
|
, matplotlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycocotools";
|
|
version = "2.0.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-2ot4FRlu6/Ctq/Z/zEWRJsvGSYu8arH9FEw3FGXYaHk=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|