3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #752 from lovek323/matplotlib

matplotlib: fix build on darwin
This commit is contained in:
Domen Kožar 2013-07-30 00:54:39 -07:00
commit af98eb8de0

View file

@ -2560,23 +2560,38 @@ pythonPackages = modules // rec {
};
matplotlib = buildPythonPackage ( rec {
name = "matplotlib-1.1.0";
# not sure if this is the best way to accomplish this -- needed to provide
# objective-c compiler on darwin
matplotlibStdenv = if stdenv.isDarwin
then pkgs.clangStdenv
else pkgs.stdenv;
matplotlib = matplotlibStdenv.mkDerivation (rec {
name = "matplotlib-1.2.1";
src = fetchurl {
url = "mirror://sourceforge/matplotlib/${name}.tar.gz";
sha256 = "be37e1d86c65ecacae6683f8805e051e9904e5f2e02bf2b7a34262c46a6d06a7";
url = "http://downloads.sourceforge.net/matplotlib/${name}.tar.gz";
sha256 = "16x2ksdxx5p92v98qngh29hdz1bnqy77fhggbjq30pyqmrr8kqaj";
};
# error: invalid command 'test'
doCheck = false;
propagatedBuildInputs = [ dateutil numpy pkgs.freetype pkgs.libpng pkgs.pkgconfig pkgs.tcl pkgs.tk pkgs.xlibs.libX11 ];
buildInputs = [ python pkgs.which pkgs.ghostscript ];
meta = {
propagatedBuildInputs =
[ dateutil numpy pkgs.freetype pkgs.libpng pkgs.pkgconfig pkgs.tcl
pkgs.tk pkgs.xlibs.libX11 ];
buildPhase = "python setup.py build";
installPhase = "python setup.py install --prefix=$out";
meta = with stdenv.lib; {
description = "python plotting library, making publication quality plots";
homepage = "http://matplotlib.sourceforge.net/";
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.simons ];
maintainers = with maintainers; [ lovek323 simons ];
platforms = platforms.unix;
};
});