diff options
author | Song Wenwu <iyzsong@gmail.com> | 2014-01-08 16:06:08 +0800 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2014-01-11 20:07:28 +0100 |
commit | 98d2f7ea454fa09adfd16ac54bb90bd72eb9025c (patch) | |
tree | 44e569d13f2d0878ca954dad9f52791f4a3bdfd1 /pkgs/development/python-modules/sip | |
parent | 7ec465a5ccc3e34647b597e83d69b02cba50967c (diff) | |
download | nixlib-98d2f7ea454fa09adfd16ac54bb90bd72eb9025c.tar nixlib-98d2f7ea454fa09adfd16ac54bb90bd72eb9025c.tar.gz nixlib-98d2f7ea454fa09adfd16ac54bb90bd72eb9025c.tar.bz2 nixlib-98d2f7ea454fa09adfd16ac54bb90bd72eb9025c.tar.lz nixlib-98d2f7ea454fa09adfd16ac54bb90bd72eb9025c.tar.xz nixlib-98d2f7ea454fa09adfd16ac54bb90bd72eb9025c.tar.zst nixlib-98d2f7ea454fa09adfd16ac54bb90bd72eb9025c.zip |
sip: update to 4.15.4 and add python3 support
Diffstat (limited to 'pkgs/development/python-modules/sip')
-rw-r--r-- | pkgs/development/python-modules/sip/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/sip/default.nix b/pkgs/development/python-modules/sip/default.nix new file mode 100644 index 000000000000..72693a0b5d30 --- /dev/null +++ b/pkgs/development/python-modules/sip/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, python }: + +stdenv.mkDerivation rec { + name = "sip-4.15.4"; + + src = fetchurl { + 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.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; + }; +} |