mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
e2a374799f
a worthy goal to move the Python packages that are currently in all-packages.nix into a single attribute set, but this doesn't require moving python-packages.nix or the other changes made to that file. The Python packages in all-packages.nix should simply be moved to python-packages.nix, and ideally changed to use buildPythonPackage. svn path=/nixpkgs/trunk/; revision=21196
33 lines
840 B
Nix
33 lines
840 B
Nix
a :
|
|
let
|
|
fetchurl = a.fetchurl;
|
|
|
|
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 = [];
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
phaseNames = ["doConfigure" "doMakeInstall" "postInstall"];
|
|
postInstall = a.fullDepEntry (''
|
|
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";
|
|
};
|
|
}
|