diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2017-03-21 13:01:17 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-03-21 13:01:49 +0100 |
commit | 3760c8c7fde6e8b15d19b063579d05018fc2d8b3 (patch) | |
tree | b081b03bcb4bc6f9de14a96c185e4731a64355d5 /pkgs/development/python-modules/pycairo | |
parent | 1b0d9e9ae64b677c09f345f740f5a94fa41eb468 (diff) |
Python: replace mkPythonDerivation with buildPythonPackage and format="other";
This way all Python packages use the same function, `buildPythonPackage`.
Diffstat (limited to 'pkgs/development/python-modules/pycairo')
-rw-r--r-- | pkgs/development/python-modules/pycairo/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pycairo/default.nix b/pkgs/development/python-modules/pycairo/default.nix index e7cf3b4c4489d..5d002c0962396 100644 --- a/pkgs/development/python-modules/pycairo/default.nix +++ b/pkgs/development/python-modules/pycairo/default.nix @@ -1,8 +1,9 @@ -{ lib, fetchurl, fetchpatch, python, mkPythonDerivation, pkgconfig, cairo, xlibsWrapper, isPyPy, isPy35, isPy3k }: +{ lib, fetchurl, fetchpatch, python, buildPythonPackage, pkgconfig, cairo, xlibsWrapper, isPyPy, isPy35, isPy3k }: -if (isPyPy) then throw "pycairo not supported for interpreter ${python.executable}" else mkPythonDerivation rec { +if (isPyPy) then throw "pycairo not supported for interpreter ${python.executable}" else buildPythonPackage rec { version = "1.10.0"; name = "pycairo-${version}"; + format = "other"; src = if isPy3k then fetchurl { url = "http://cairographics.org/releases/pycairo-${version}.tar.bz2"; |