mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
38 lines
710 B
Nix
38 lines
710 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
cython,
|
|
matplotlib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycocotools";
|
|
version = "2.0.11";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-NCVNdtqFV2/K9cHzqpquFrjLFUGDNLpCg7gAeWvRmT0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cython
|
|
matplotlib
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pycocotools.coco"
|
|
"pycocotools.cocoeval"
|
|
];
|
|
|
|
# has no tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Official APIs for the MS-COCO dataset";
|
|
homepage = "https://github.com/cocodataset/cocoapi/tree/master/PythonAPI";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ piegames ];
|
|
};
|
|
}
|