zbar: drop pygtk support

It is deprecated and we do not actually use it anywhere
This commit is contained in:
Jan Tojnar 2019-09-10 00:35:05 +02:00
parent e1d5779154
commit da135c2704
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -3,7 +3,6 @@
, fetchFromGitHub
, imagemagickBig
, pkgconfig
, python2Packages
, perl
, libX11
, libv4l
@ -17,14 +16,11 @@
, enableDbus ? stdenv.isLinux
}:
let
inherit (python2Packages) pygtk python;
in
stdenv.mkDerivation rec {
pname = "zbar";
version = "0.23";
outputs = [ "out" "py" "lib" "dev" "doc" "man" ];
outputs = [ "out" "lib" "dev" "doc" "man" ];
src = fetchFromGitHub {
owner = "mchehab";
@ -42,8 +38,6 @@ stdenv.mkDerivation rec {
buildInputs = [
imagemagickBig
python
pygtk
perl
libX11
] ++ lib.optionals enableDbus [
@ -55,7 +49,9 @@ stdenv.mkDerivation rec {
qt5.qtx11extras
];
configureFlags = (if enableDbus then [
configureFlags = [
"--without-python"
] ++ (if enableDbus then [
"--with-dbusconfdir=${placeholder "out"}/etc"
] else [
"--without-dbus"
@ -65,11 +61,6 @@ stdenv.mkDerivation rec {
"--without-qt"
];
makeFlags = [
"pyexecdir=${placeholder "py"}/${python.sitePackages}"
"pythondir=${placeholder "py"}/${python.sitePackages}"
];
meta = with lib; {
description = "Bar code reader";
longDescription = ''