nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 37 lines 719 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, cython 5, matplotlib 6}: 7 8buildPythonPackage rec { 9 pname = "pycocotools"; 10 version = "2.0.4"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "2ab586aa389b9657b6d73c2b9a827a3681f8d00f36490c2e8ab05902e3fd9e93"; 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}