Merge pull request #6958 from lancelotsix/add_basemap_python_module

Add python basemap package

lethalman 9f3153b1 aba61bab

+37
+37
pkgs/top-level/python-packages.nix
··· 14208 }; 14209 }; 14210 14211 }); in pythonPackages
··· 14208 }; 14209 }; 14210 14211 + basemap = buildPythonPackage rec { 14212 + name = "basemap-1.0.7"; 14213 + 14214 + src = pkgs.fetchurl { 14215 + url = "mirror://sourceforge/project/matplotlib/matplotlib-toolkits/basemap-1.0.7/basemap-1.0.7.tar.gz"; 14216 + sha256 = "0ca522zirj5sj10vg3fshlmgi615zy5gw2assapcj91vsvhc4zp0"; 14217 + }; 14218 + 14219 + propagatedBuildInputs = with self; [ numpy matplotlib pillow ]; 14220 + buildInputs = with self; with pkgs ; [ setuptools geos proj ]; 14221 + 14222 + # Standard configurePhase from `buildPythonPackage` seems to break the setup.py script 14223 + configurePhase = '' 14224 + export GEOS_DIR=${pkgs.geos} 14225 + ''; 14226 + 14227 + # The installer does not support the '--old-and-unmanageable' option 14228 + installPhase = '' 14229 + ${python.interpreter} setup.py install --prefix $out 14230 + ''; 14231 + 14232 + # The 'check' target is not supported by the `setup.py` script. 14233 + # TODO : do the post install checks (`cd examples && ${python.interpreter} run_all.py`) 14234 + doCheck = false; 14235 + 14236 + meta = { 14237 + homepage = "http://matplotlib.org/basemap/"; 14238 + description = "Plot data on map projections with matplotlib"; 14239 + longDescription = '' 14240 + An add-on toolkit for matplotlib that lets you plot data on map projections with 14241 + coastlines, lakes, rivers and political boundaries. See 14242 + http://matplotlib.github.com/basemap/users/examples.html for examples of what it can do. 14243 + ''; 14244 + licences = [ licenses.mit licenses.gpl2 ]; 14245 + }; 14246 + }; 14247 + 14248 }); in pythonPackages