forked from mirrors/nixpkgs
3760c8c7fd
This way all Python packages use the same function, `buildPythonPackage`.
26 lines
779 B
Nix
26 lines
779 B
Nix
{ stdenv, fetchurl, buildPythonPackage, python, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}:
|
|
|
|
buildPythonPackage rec {
|
|
major = "3.22";
|
|
minor = "0";
|
|
name = "pygobject-${major}.${minor}";
|
|
format = "other";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/pygobject/${major}/${name}.tar.xz";
|
|
sha256 = "08b29cfb08efc80f7a8630a2734dec65a99c1b59f1e5771c671d2e4ed8a5cbe7";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
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;
|
|
};
|
|
}
|