summary refs log tree commit diff
path: root/pkgs/development/python-modules/sip
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-08-31 11:01:16 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2016-09-01 16:16:31 +0200
commit4f6b6f14726296c1d402f187db995031bccd791f (patch)
tree56b714c2eb6d16e4bfd98f9c64c84fbfbac3c031 /pkgs/development/python-modules/sip
parente9c4d00cacea699c0e23e7c09967dd3fe12edc23 (diff)
downloadnixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar
nixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar.gz
nixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar.bz2
nixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar.lz
nixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar.xz
nixlib-4f6b6f14726296c1d402f187db995031bccd791f.tar.zst
nixlib-4f6b6f14726296c1d402f187db995031bccd791f.zip
pythonPackages: use mkPythonDerivation
Diffstat (limited to 'pkgs/development/python-modules/sip')
-rw-r--r--pkgs/development/python-modules/sip/default.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/sip/default.nix b/pkgs/development/python-modules/sip/default.nix
index cbee1867cf63..e44f92ab013d 100644
--- a/pkgs/development/python-modules/sip/default.nix
+++ b/pkgs/development/python-modules/sip/default.nix
@@ -1,6 +1,6 @@
-{ stdenv, fetchurl, python, isPyPy }:
+{ lib, fetchurl, mkPythonDerivation, python, isPyPy }:
 
-if isPyPy then throw "sip not supported for interpreter ${python.executable}" else stdenv.mkDerivation rec {
+if isPyPy then throw "sip not supported for interpreter ${python.executable}" else mkPythonDerivation rec {
   name = "sip-4.18.1";
 
   src = fetchurl {
@@ -14,11 +14,7 @@ if isPyPy then throw "sip not supported for interpreter ${python.executable}" el
       -b $out/bin -e $out/include
   '';
 
-  buildInputs = [ python ];
-
-  passthru.pythonPath = [];
-
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "Creates C++ bindings for Python modules";
     homepage    = "http://www.riverbankcomputing.co.uk/";
     license     = licenses.gpl2Plus;