1{ lib
2, buildPythonPackage
3, fetchPypi
4, cython
5, matplotlib
6}:
7
8buildPythonPackage rec {
9 pname = "pycocotools";
10 version = "2.0.7";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-2ot4FRlu6/Ctq/Z/zEWRJsvGSYu8arH9FEw3FGXYaHk=";
16 };
17
18 propagatedBuildInputs = [
19 cython
20 matplotlib
21 ];
22
23 pythonImportsCheck = [
24 "pycocotools.coco"
25 "pycocotools.cocoeval"
26 ];
27
28 # has no tests
29 doCheck = false;
30
31 meta = with lib; {
32 description = "Official APIs for the MS-COCO dataset";
33 homepage = "https://github.com/cocodataset/cocoapi/tree/master/PythonAPI";
34 license = licenses.bsd2;
35 maintainers = with maintainers; [ piegames ];
36 };
37}