Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 56 lines 1.2 kB view raw
1{ buildPythonPackage, lib, fetchPypi 2, pytestCheckHook, filelock, mock, pep8 3, cython 4, six, pyshp, shapely, geos, numpy 5, gdal, pillow, matplotlib, pyepsg, pykdtree, scipy, owslib, fiona 6, proj, flufl_lock 7}: 8 9buildPythonPackage rec { 10 pname = "cartopy"; 11 version = "0.19.0.post1"; 12 13 src = fetchPypi { 14 inherit version; 15 pname = "Cartopy"; 16 sha256 = "0xnm8z3as3hriivdfd26s6vn5b63gb46x6vxw6gh1mwfm5rlg2sb"; 17 }; 18 19 buildInputs = [ 20 geos proj 21 ]; 22 23 propagatedBuildInputs = [ 24 # required 25 six pyshp shapely numpy 26 27 # optional 28 gdal pillow matplotlib pyepsg pykdtree scipy fiona owslib 29 ]; 30 31 checkInputs = [ pytestCheckHook filelock mock pep8 flufl_lock ]; 32 33 pytestFlagsArray = [ 34 "--pyargs" "cartopy" 35 "-m" "'not network and not natural_earth'" 36 ]; 37 38 disabledTests = [ 39 "test_nightshade_image" 40 "background_img" 41 "test_gridliner_labels_bbox_style" 42 ]; 43 44 nativeBuildInputs = [ 45 cython 46 geos # for geos-config 47 proj 48 ]; 49 50 meta = with lib; { 51 description = "Process geospatial data to create maps and perform analyses"; 52 license = licenses.lgpl3Plus; 53 homepage = "https://scitools.org.uk/cartopy/docs/latest/"; 54 maintainers = with maintainers; [ mredaelli ]; 55 }; 56}