Python: replace mkPythonDerivation with buildPythonPackage and format="other";
This way all Python packages use the same function, `buildPythonPackage`.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
{ lib, fetchurl, mkPythonDerivation, python, pkgconfig, dbus, dbus_glib, dbus_tools, isPyPy
|
||||
{ lib, fetchurl, buildPythonPackage, python, pkgconfig, dbus, dbus_glib, dbus_tools, isPyPy
|
||||
, ncurses, pygobject3 }:
|
||||
|
||||
if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else mkPythonDerivation rec {
|
||||
if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else buildPythonPackage rec {
|
||||
name = "dbus-python-1.2.4";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://dbus.freedesktop.org/releases/dbus-python/${name}.tar.gz";
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{ stdenv, fetchurl, mkPythonDerivation, pycurl }:
|
||||
{ stdenv, fetchurl, buildPythonPackage, pycurl }:
|
||||
|
||||
mkPythonDerivation rec {
|
||||
buildPythonPackage rec {
|
||||
name = "koji-1.8";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://fedorahosted.org/released/koji/koji-1.8.0.tar.bz2";
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ stdenv, fetchurl, mkPythonDerivation, libsexy, pkgconfig, libxml2, pygtk, pango, gtk2, glib }:
|
||||
{ stdenv, fetchurl, buildPythonPackage, libsexy, pkgconfig, libxml2, pygtk, pango, gtk2, glib }:
|
||||
|
||||
mkPythonDerivation rec {
|
||||
buildPythonPackage rec {
|
||||
name = "libsexy-${version}";
|
||||
version = "0.1.9";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
{ stdenv, fetchurl, mkPythonDerivation, python, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}:
|
||||
{ stdenv, fetchurl, buildPythonPackage, python, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}:
|
||||
|
||||
mkPythonDerivation rec {
|
||||
buildPythonPackage rec {
|
||||
major = "3.22";
|
||||
minor = "0";
|
||||
name = "pygobject-${major}.${minor}";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/pygobject/${major}/${name}.tar.xz";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, python, mkPythonDerivation, pkgconfig, glib }:
|
||||
{ stdenv, fetchurl, python, buildPythonPackage, pkgconfig, glib }:
|
||||
|
||||
mkPythonDerivation rec {
|
||||
buildPythonPackage rec {
|
||||
name = "pygobject-${version}";
|
||||
version = "2.28.6";
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
{ lib, fetchurl, python, mkPythonDerivation, pkgconfig, pygobject2, glib, pygtk, gnome2 }:
|
||||
{ lib, fetchurl, python, buildPythonPackage, pkgconfig, pygobject2, glib, pygtk, gnome2 }:
|
||||
|
||||
let version = "2.10.1"; in
|
||||
|
||||
mkPythonDerivation {
|
||||
buildPythonPackage {
|
||||
name = "pygtksourceview-${version}";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.gnome.org/pub/gnome/sources/pygtksourceview/2.10/pygtksourceview-${version}.tar.bz2";
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
|
||||
let
|
||||
version = "4.12";
|
||||
inherit (pythonPackages) mkPythonDerivation python dbus-python sip;
|
||||
in mkPythonDerivation {
|
||||
inherit (pythonPackages) buildPythonPackage python dbus-python sip;
|
||||
in buildPythonPackage {
|
||||
name = "PyQt-x11-gpl-${version}";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/pyqt/PyQt4_gpl_x11-${version}.tar.gz";
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
|
||||
let
|
||||
version = "5.8.1";
|
||||
inherit (pythonPackages) mkPythonDerivation python dbus-python sip;
|
||||
in mkPythonDerivation {
|
||||
inherit (pythonPackages) buildPythonPackage python dbus-python sip;
|
||||
in buildPythonPackage {
|
||||
name = "PyQt-${version}";
|
||||
format = "other";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for Qt5";
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ lib, fetchurl, cmake, python, mkPythonDerivation, pysideGeneratorrunner, pysideShiboken, qt4 }:
|
||||
{ lib, fetchurl, cmake, python, buildPythonPackage, pysideGeneratorrunner, pysideShiboken, qt4 }:
|
||||
|
||||
mkPythonDerivation rec {
|
||||
buildPythonPackage rec {
|
||||
name = "pyside-${version}";
|
||||
version = "1.2.4";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/PySide/PySide/archive/${version}.tar.gz";
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{lib, fetchurl, python, mkPythonDerivation, makeWrapper}:
|
||||
{lib, fetchurl, python, buildPythonPackage, makeWrapper}:
|
||||
|
||||
mkPythonDerivation rec {
|
||||
buildPythonPackage rec {
|
||||
name = "PyXML-0.8.4";
|
||||
format = "other";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/pyxml/${name}.tar.gz";
|
||||
sha256 = "04wc8i7cdkibhrldy6j65qp5l75zjxf5lx6qxdxfdf2gb3wndawz";
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{ lib, fetchurl, mkPythonDerivation, python, isPyPy }:
|
||||
{ lib, fetchurl, buildPythonPackage, python, isPyPy }:
|
||||
|
||||
if isPyPy then throw "sip not supported for interpreter ${python.executable}" else mkPythonDerivation rec {
|
||||
if isPyPy then throw "sip not supported for interpreter ${python.executable}" else buildPythonPackage rec {
|
||||
name = "sip-4.19.1";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz";
|
||||
|
||||
Reference in New Issue
Block a user