summary refs log tree commit diff
path: root/pkgs/development/python-modules/dbus
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/dbus
parente9c4d00cacea699c0e23e7c09967dd3fe12edc23 (diff)
downloadnixpkgs-4f6b6f14726296c1d402f187db995031bccd791f.tar
nixpkgs-4f6b6f14726296c1d402f187db995031bccd791f.tar.gz
nixpkgs-4f6b6f14726296c1d402f187db995031bccd791f.tar.bz2
nixpkgs-4f6b6f14726296c1d402f187db995031bccd791f.tar.lz
nixpkgs-4f6b6f14726296c1d402f187db995031bccd791f.tar.xz
nixpkgs-4f6b6f14726296c1d402f187db995031bccd791f.tar.zst
nixpkgs-4f6b6f14726296c1d402f187db995031bccd791f.zip
pythonPackages: use mkPythonDerivation
Diffstat (limited to 'pkgs/development/python-modules/dbus')
-rw-r--r--pkgs/development/python-modules/dbus/default.nix16
1 files changed, 6 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/dbus/default.nix b/pkgs/development/python-modules/dbus/default.nix
index e99a10ab1c4..f3f897ac9e7 100644
--- a/pkgs/development/python-modules/dbus/default.nix
+++ b/pkgs/development/python-modules/dbus/default.nix
@@ -1,7 +1,7 @@
-{ stdenv, fetchurl, python, pkgconfig, dbus, dbus_glib, dbus_tools, isPyPy
+{ lib, fetchurl, mkPythonDerivation, python, pkgconfig, dbus, dbus_glib, dbus_tools, isPyPy
 , ncurses, pygobject3 }:
 
-if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else stdenv.mkDerivation rec {
+if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else mkPythonDerivation rec {
   name = "dbus-python-1.2.4";
 
   src = fetchurl {
@@ -11,21 +11,17 @@ if isPyPy then throw "dbus-python not supported for interpreter ${python.executa
 
   postPatch = "patchShebangs .";
 
-  buildInputs = [ python pkgconfig dbus dbus_glib ]
-    ++ stdenv.lib.optionals doCheck [ dbus_tools pygobject3 ]
+  buildInputs = [ pkgconfig dbus dbus_glib ]
+    ++ lib.optionals doCheck [ dbus_tools pygobject3 ]
     # My guess why it's sometimes trying to -lncurses.
     # It seems not to retain the dependency anyway.
-    ++ stdenv.lib.optional (! python ? modules) ncurses;
+    ++ lib.optional (! python ? modules) ncurses;
 
   doCheck = true;
 
-  # Set empty pythonPath, so that the package is recognized as a python package
-  # for python.buildEnv
-  pythonPath = [];
-
   meta = {
     description = "Python DBus bindings";
-    license = stdenv.lib.licenses.mit;
+    license = lib.licenses.mit;
     platforms = dbus.meta.platforms;
   };
 }