mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
fdc80b46b2
Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de>
38 lines
719 B
Nix
38 lines
719 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cython
|
|
, matplotlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycocotools";
|
|
version = "2.0.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2ab586aa389b9657b6d73c2b9a827a3681f8d00f36490c2e8ab05902e3fd9e93";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|