717c76716f
The packages "which" and "ncurses" are needed for building pygobject3 (on darwin) during the checkPhase. The ncurses library is necessary only because python3.5 is currently built using "-lncurses" and pygobject3 wants the same libraries that python3.5 was compiled with. (Because it uses "python3.5-config --ldflags" during the build)
23 lines
717 B
Nix
23 lines
717 B
Nix
{ stdenv, fetchurl, mkPythonDerivation, python, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}:
|
|
|
|
mkPythonDerivation rec {
|
|
major = "3.20";
|
|
minor = "0";
|
|
name = "pygobject-${major}.${minor}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/pygobject/${major}/${name}.tar.xz";
|
|
sha256 = "0ikzh3l7g1gjh8jj8vg6mdvrb25svp63gxcam4m0i404yh0lgari";
|
|
};
|
|
|
|
buildInputs = [ pkgconfig glib gobjectIntrospection ]
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ which ncurses ];
|
|
propagatedBuildInputs = [ pycairo cairo ];
|
|
|
|
meta = {
|
|
homepage = http://live.gnome.org/PyGObject;
|
|
description = "Python bindings for Glib";
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|