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