2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}:
|
2014-05-20 13:37:09 +02:00
|
|
|
|
2017-03-21 13:01:17 +01:00
|
|
|
buildPythonPackage rec {
|
2017-11-25 16:42:23 +01:00
|
|
|
major = "3.26";
|
2017-06-25 18:59:23 +02:00
|
|
|
minor = "1";
|
2017-11-09 12:26:09 +01:00
|
|
|
version = "${major}.${minor}";
|
2017-03-21 13:01:17 +01:00
|
|
|
format = "other";
|
2017-11-09 12:26:09 +01:00
|
|
|
pname = "pygobject";
|
|
|
|
name = pname + "-" + version;
|
2014-01-05 19:50:03 +01:00
|
|
|
|
2013-05-09 21:11:30 +02:00
|
|
|
src = fetchurl {
|
2016-04-03 07:28:15 +02:00
|
|
|
url = "mirror://gnome/sources/pygobject/${major}/${name}.tar.xz";
|
2017-11-25 16:42:23 +01:00
|
|
|
sha256 = "1afi0jdjd9sanrzjwhv7z1k7qxlb91fqa6yqc2dbpjkhkjdpnmzm";
|
2013-05-09 21:11:30 +02:00
|
|
|
};
|
|
|
|
|
2016-11-13 23:18:43 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ glib gobjectIntrospection ]
|
2016-08-26 23:18:32 +02:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ which ncurses ];
|
2015-01-21 20:59:57 +01:00
|
|
|
propagatedBuildInputs = [ pycairo cairo ];
|
2013-05-09 21:11:30 +02:00
|
|
|
|
|
|
|
meta = {
|
2017-11-25 16:42:23 +01:00
|
|
|
homepage = https://pygobject.readthedocs.io/;
|
2013-05-09 21:11:30 +02:00
|
|
|
description = "Python bindings for Glib";
|
2016-08-26 23:18:32 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-05-09 21:11:30 +02:00
|
|
|
};
|
|
|
|
}
|