diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2017-07-18 16:39:10 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2017-07-22 23:48:57 +0200 |
commit | 06d04dbcfc22950e5610f9b78d3bfe58a62a2f62 (patch) | |
tree | 19afe19999a6fccb146a0589bbce4bc039485ad9 /gnu/packages | |
parent | 3befd0a97caa16982adf54fb482f6229b37b65ed (diff) | |
download | guix-06d04dbcfc22950e5610f9b78d3bfe58a62a2f62.tar guix-06d04dbcfc22950e5610f9b78d3bfe58a62a2f62.tar.gz |
gnu: Add python-qscintilla.
* gnu/packages/qt.scm (python-qscintilla): New variable.
Co-authored-by: Quiliro <quiliro@fsfla.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/qt.scm | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 5e5e5cdb37..b0fc7432cb 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -1415,6 +1415,46 @@ and debugging source code. These include support for syntax styling, error indicators, code completion and call tips.") (license license:gpl3+))) +(define-public python-qscintilla + (package (inherit qscintilla) + (name "python-qscintilla") + (arguments + `(#:configure-flags + (list "--pyqt=PyQt5" + (string-append "--pyqt-sipdir=" + (assoc-ref %build-inputs "python-pyqt") + "/share/sip") + (string-append "--qsci-incdir=" + (assoc-ref %build-inputs "qscintilla") + "/include") + (string-append "--qsci-libdir=" + (assoc-ref %build-inputs "qscintilla") + "/lib")) + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs configure-flags #:allow-other-keys) + (chdir "Python") + (and (zero? (apply system* "python3" "configure.py" + configure-flags)) + ;; Install to the right directory + (begin + (substitute* '("Makefile" + "Qsci/Makefile") + (("\\$\\(INSTALL_ROOT\\)/gnu/store/[^/]+") + (assoc-ref outputs "out"))) + #t))))))) + (inputs + `(("qscintilla" ,qscintilla) + ("python" ,python) + ("python-pyqt" ,python-pyqt))) + (description "QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ +editor control. QScintilla includes features especially useful when editing +and debugging source code. These include support for syntax styling, error +indicators, code completion and call tips. + +This package provides the Python bindings."))) + (define-public qtkeychain (package (name "qtkeychain") |