Merge pull request #38028 from Ma27/cleanup-frescobaldi

frescobaldi: 2.0.16 -> 3.0.0; fix build
This commit is contained in:
Robert Schütz
2018-03-31 17:25:03 +02:00
committed by GitHub
7 changed files with 95 additions and 36 deletions

View File

@@ -0,0 +1,42 @@
{ buildPythonPackage, fetchPypi, stdenv, sip, qtbase, pyqt5, poppler, pkgconfig, fetchpatch
, python, 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; [ ma27 ];
};
}

View File

@@ -0,0 +1,12 @@
diff --git a/setup.py b/setup.py
index 59a75b0..0a73268 100644
--- a/setup.py
+++ b/setup.py
@@ -169,6 +169,7 @@ class build_ext(build_ext_base):
'Please specify via --pyqt-sip-flags=')
self.include_dirs += (self.qt_include_dir,
+ '@poppler_include_dir@',
os.path.join(self.qt_include_dir, 'QtCore'),
os.path.join(self.qt_include_dir, 'QtGui'),
os.path.join(self.qt_include_dir, 'QtXml'))

View File

@@ -0,0 +1,21 @@
{ buildPythonPackage, fetchPypi, stdenv }:
buildPythonPackage rec {
pname = "python-ly";
version = "0.9.5";
src = fetchPypi {
inherit pname version;
sha256 = "0x98dv7p8mg26p4816yy8hz4f34zf6hpnnfmr56msgh9jnsm2qfl";
};
# tests not shipped on `pypi` and
# seem to be broken ATM: https://github.com/wbsoft/python-ly/issues/70
doCheck = false;
meta = with stdenv.lib; {
description = "Tool and library for manipulating LilyPond files";
license = licenses.gpl2;
maintainers = with maintainers; [ ma27 ];
};
}