mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
pythonPackages.pygobject3: 3.26.1 -> 3.30.2
This commit is contained in:
parent
2c8565a3ce
commit
372f97f715
@ -1,28 +1,40 @@
|
||||
{ stdenv, fetchurl, buildPythonPackage, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}:
|
||||
{ stdenv, fetchurl, buildPythonPackage, pkgconfig, glib, gobjectIntrospection,
|
||||
pycairo, cairo, which, ncurses, meson, ninja, isPy3k, gnome3 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
major = "3.26";
|
||||
minor = "1";
|
||||
version = "${major}.${minor}";
|
||||
format = "other";
|
||||
pname = "pygobject";
|
||||
name = pname + "-" + version;
|
||||
version = "3.30.2";
|
||||
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/pygobject/${major}/${name}.tar.xz";
|
||||
sha256 = "1afi0jdjd9sanrzjwhv7z1k7qxlb91fqa6yqc2dbpjkhkjdpnmzm";
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "15zd4w43js048y7fd1kdi6wpvccz1njjy60xw1ckvfy1qhikbz54";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
mesonFlags = [
|
||||
"-Dpython=python${if isPy3k then "3" else "2" }"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig meson ninja ];
|
||||
buildInputs = [ glib gobjectIntrospection ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ which ncurses ];
|
||||
propagatedBuildInputs = [ pycairo cairo ];
|
||||
|
||||
meta = {
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = pname;
|
||||
attrPath = "python3.pkgs.${pname}3";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://pygobject.readthedocs.io/;
|
||||
description = "Python bindings for Glib";
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ jtojnar ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user