3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/poppler-qt5/default.nix
Maximilian Bosch 9842c4b107
treewide: update which packages I'm currently maintaining
Idea shamelessly stolen from 4e60b0efae.

I realized that I don't really know anymore where I'm listed as maintainer and what
I'm actually (co)-maintaining which means that I can't proactively take
care of packages I officially maintain.

As I don't have the time, energy and motivation to take care of stuff I
was interested in 1 or 2 years ago (or packaged for someone else in the
past), I decided that I make this explicit by removing myself from several
packages and adding myself in some other stuff I'm now interested in.

I've seen it several times now that people remove themselves from a
package without removing the package if it's unmaintained after that
which is why I figured that it's fine in my case as the affected pkgs
are rather low-prio and were pretty easy to maintain.
2019-12-26 15:27:47 +01:00

43 lines
1.1 KiB
Nix

{ buildPythonPackage, fetchPypi, stdenv, sip, qtbase, pyqt5, poppler, pkgconfig, fetchpatch
, substituteAll
}:
buildPythonPackage rec {
pname = "python-poppler-qt5";
version = "0.24.2";
src = fetchPypi {
inherit pname version;
sha256 = "0l69llw1fzwz8y90q0qp9q5pifbrqjjbwii7di54dwghw5fc6w1r";
};
patches = [
(substituteAll {
src = ./poppler-include-dir.patch;
poppler_include_dir = "${poppler.dev}/include/poppler";
})
(fetchpatch {
url = "https://github.com/wbsoft/python-poppler-qt5/commit/faf4d1308f89560b0d849671226e3080dfc72e79.patch";
sha256 = "18krhh6wzsnpxzlzv02nginb1vralla8ai24zqk10nc4mj6fkj86";
})
];
setupPyBuildFlags = [
"--pyqt-sip-dir ${pyqt5}/share/sip/PyQt5"
"--qt-include-dir ${qtbase.dev}/include"
];
buildInputs = [ qtbase.dev poppler ];
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ sip pyqt5.dev ];
# no tests, just bindings for `poppler_qt5`
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/wbsoft/python-poppler-qt5;
license = licenses.gpl2;
maintainers = with maintainers; [ ];
};
}