···1420814208 };
1420914209 };
14210142101421114211+ basemap = buildPythonPackage rec {
1421214212+ name = "basemap-1.0.7";
1421314213+1421414214+ src = pkgs.fetchurl {
1421514215+ url = "mirror://sourceforge/project/matplotlib/matplotlib-toolkits/basemap-1.0.7/basemap-1.0.7.tar.gz";
1421614216+ sha256 = "0ca522zirj5sj10vg3fshlmgi615zy5gw2assapcj91vsvhc4zp0";
1421714217+ };
1421814218+1421914219+ propagatedBuildInputs = with self; [ numpy matplotlib pillow ];
1422014220+ buildInputs = with self; with pkgs ; [ setuptools geos proj ];
1422114221+1422214222+ # Standard configurePhase from `buildPythonPackage` seems to break the setup.py script
1422314223+ configurePhase = ''
1422414224+ export GEOS_DIR=${pkgs.geos}
1422514225+ '';
1422614226+1422714227+ # The installer does not support the '--old-and-unmanageable' option
1422814228+ installPhase = ''
1422914229+ ${python.interpreter} setup.py install --prefix $out
1423014230+ '';
1423114231+1423214232+ # The 'check' target is not supported by the `setup.py` script.
1423314233+ # TODO : do the post install checks (`cd examples && ${python.interpreter} run_all.py`)
1423414234+ doCheck = false;
1423514235+1423614236+ meta = {
1423714237+ homepage = "http://matplotlib.org/basemap/";
1423814238+ description = "Plot data on map projections with matplotlib";
1423914239+ longDescription = ''
1424014240+ An add-on toolkit for matplotlib that lets you plot data on map projections with
1424114241+ coastlines, lakes, rivers and political boundaries. See
1424214242+ http://matplotlib.github.com/basemap/users/examples.html for examples of what it can do.
1424314243+ '';
1424414244+ licences = [ licenses.mit licenses.gpl2 ];
1424514245+ };
1424614246+ };
1424714247+1421114248}); in pythonPackages