From 98d2f7ea454fa09adfd16ac54bb90bd72eb9025c Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Wed, 8 Jan 2014 16:06:08 +0800 Subject: [PATCH] sip: update to 4.15.4 and add python3 support --- .../{python-sip => sip}/default.nix | 19 +++++++++---------- pkgs/top-level/all-packages.nix | 2 +- pkgs/top-level/python-packages.nix | 5 +++++ 3 files changed, 15 insertions(+), 11 deletions(-) rename pkgs/development/python-modules/{python-sip => sip}/default.nix (59%) diff --git a/pkgs/development/python-modules/python-sip/default.nix b/pkgs/development/python-modules/sip/default.nix similarity index 59% rename from pkgs/development/python-modules/python-sip/default.nix rename to pkgs/development/python-modules/sip/default.nix index 6d79cf53a6b5..72693a0b5d30 100644 --- a/pkgs/development/python-modules/python-sip/default.nix +++ b/pkgs/development/python-modules/sip/default.nix @@ -1,28 +1,27 @@ { stdenv, fetchurl, python }: stdenv.mkDerivation rec { - name = "sip-4.14.6"; - + name = "sip-4.15.4"; + src = fetchurl { - urls = [ - "http://www.riverbankcomputing.co.uk/static/Downloads/sip4/${name}.tar.gz" - "http://pkgs.fedoraproject.org/repo/pkgs/sip/${name}.tar.gz/d6493b9f0a7911566545f694327314c4/${name}.tar.gz" - ]; - sha256 = "1bwdd5xhrx8dx8rr86r043ddlbg7gd1vh0pm2nxw5l1yprwa7paa"; + url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz"; + sha256 = "0a12lmqkf342yg42ygnjm1fyldcx9pzhy7z68p4ms4ydfcl78jsr"; }; configurePhase = stdenv.lib.optionalString stdenv.isDarwin '' # prevent sip from complaining about python not being built as a framework sed -i -e 1564,1565d siputils.py '' + '' - python ./configure.py -d $out/lib/${python.libPrefix}/site-packages \ + ${python.executable} ./configure.py \ + -d $out/lib/${python.libPrefix}/site-packages \ -b $out/bin -e $out/include ''; - + buildInputs = [ python ]; - + meta = with stdenv.lib; { description = "Creates C++ bindings for Python modules"; + homepage = "http://www.riverbankcomputing.co.uk/"; license = licenses.gpl2Plus; maintainers = with maintainers; [ lovek323 sander urkud ]; platforms = platforms.all; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f6b00604239e..8c74a04f9b6d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6189,7 +6189,7 @@ let rhpl = callPackage ../development/python-modules/rhpl { }; - sip = callPackage ../development/python-modules/python-sip { }; + sip = callPackage ../development/python-modules/sip { }; pyqt4 = callPackage ../development/python-modules/pyqt { stdenv = if stdenv.isDarwin diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cf8d970dfd0e..a9c678498762 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -121,6 +121,11 @@ pythonPackages = modules // import ./python-packages-generated.nix { inherit python buildPythonPackage pygobject pycairo; }; + sip = import ../development/python-modules/sip { + inherit (pkgs) stdenv fetchurl; + inherit python; + }; + # packages defined here aafigure = buildPythonPackage rec {