pythonPackages.pywebkitgtk: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 11:50:17 -04:00 committed by Frederik Rietdijk
parent da2f7c0ee6
commit 467c2fd598
2 changed files with 28 additions and 22 deletions

View File

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchurl
, pkgs
, pygtk
}:
buildPythonPackage rec {
pname = "pywebkitgtk";
version = "1.1.8";
format = "other";
src = fetchurl {
url = "http://pywebkitgtk.googlecode.com/files/${pname}-${version}.tar.bz2";
sha256 = "1svlwyl61rvbqbcbalkg6pbf38yjyv7qkq9sx4x35yk69lscaac2";
};
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = [ pygtk pkgs.gtk2 pkgs.libxml2 pkgs.libxslt pkgs.libsoup pkgs.webkitgtk24x-gtk2 pkgs.icu ];
meta = with stdenv.lib; {
homepage = "https://code.google.com/p/pywebkitgtk/";
description = "Python bindings for the WebKit GTK+ port";
license = licenses.lgpl2Plus;
};
}

View File

@ -3512,28 +3512,7 @@ in {
pyutil = callPackage ../development/python-modules/pyutil { };
pywebkitgtk = buildPythonPackage rec {
name = "pywebkitgtk-${version}";
version = "1.1.8";
format = "other";
src = pkgs.fetchurl {
url = "http://pywebkitgtk.googlecode.com/files/${name}.tar.bz2";
sha256 = "1svlwyl61rvbqbcbalkg6pbf38yjyv7qkq9sx4x35yk69lscaac2";
};
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = [
pkgs.gtk2 self.pygtk pkgs.libxml2
pkgs.libxslt pkgs.libsoup pkgs.webkitgtk24x-gtk2 pkgs.icu
];
meta = {
homepage = "https://code.google.com/p/pywebkitgtk/";
description = "Python bindings for the WebKit GTK+ port";
license = licenses.lgpl2Plus;
};
};
pywebkitgtk = callPackage ../development/python-modules/pywebkitgtk { };
pywinrm = callPackage ../development/python-modules/pywinrm { };