forked from mirrors/nixpkgs
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
28 lines
701 B
Nix
28 lines
701 B
Nix
{ stdenv, fetchurl, buildPythonPackage, libsexy, pkgconfig, libxml2, pygtk, pango, gtk2, glib }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libsexy";
|
|
version = "0.1.9";
|
|
format = "other";
|
|
|
|
src = fetchurl {
|
|
url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz";
|
|
sha256 = "05bgcsxwkp63rlr8wg6znd46cfbhrzc5wh70jabsi654pxxjb39d";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [
|
|
pygtk libsexy gtk2 glib pango libxml2
|
|
];
|
|
|
|
postInstall = ''
|
|
ln -s $out/lib/python*/site-packages/gtk-2.0/* $out/lib/python*/site-packages/
|
|
'';
|
|
|
|
meta = {
|
|
description = "Python libsexy bindings";
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|