3
0
Fork 0
forked from mirrors/nixpkgs

pythonSexy: use mkDerivation

This commit is contained in:
Robin Gloster 2016-01-24 00:23:29 +00:00
parent 2c3013f55b
commit 629b5a88cd
2 changed files with 15 additions and 20 deletions

View file

@ -1,31 +1,26 @@
a @ { python, libsexy, pkgconfig, libxml2, pygtk, pango, gtk, glib, ... } :
let
fetchurl = a.fetchurl;
{ stdenv, fetchurl, buildPythonPackage, libsexy, pkgconfig, libxml2, pygtk, pango, gtk, glib, }:
stdenv.mkDerivation rec {
name = "python-libsexy-${version}";
version = "0.1.9";
version = a.lib.attrByPath ["version"] "0.1.9" a;
buildInputs = with a; [
pkgconfig pygtk
];
propagatedBuildInputs = with a; [
libsexy python gtk glib pango libxml2
];
in
rec {
src = fetchurl {
url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz";
sha256 = "05bgcsxwkp63rlr8wg6znd46cfbhrzc5wh70jabsi654pxxjb39d";
};
inherit buildInputs propagatedBuildInputs;
configureFlags = [];
buildInputs = [
pkgconfig pygtk
];
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall" "postInstall"];
postInstall = a.fullDepEntry (''
propagatedBuildInputs = [
libsexy gtk glib pango libxml2
];
postInstall = ''
ln -s $out/lib/python*/site-packages/gtk-2.0/* $out/lib/python*/site-packages/
'') ["minInit"];
'';
name = "python-libsexy-" + version;
meta = {
description = "Python libsexy bindings";
};

View file

@ -2870,7 +2870,7 @@ let
pythonIRClib = pythonPackages.pythonIRClib;
pythonSexy = builderDefsPackage (callPackage ../development/python-modules/libsexy) { };
pythonSexy = callPackage ../development/python-modules/libsexy { };
pytrainer = callPackage ../applications/misc/pytrainer { };