1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
4 ;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (gnu packages qt)
23 #:use-module ((guix licenses) #:select (bsd-3 gpl2 gpl3 lgpl2.1 lgpl2.1+ lgpl3 x11-style))
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix build utils)
27 #:use-module (guix build-system cmake)
28 #:use-module (guix build-system gnu)
29 #:use-module (guix packages)
30 #:use-module (guix utils)
31 #:use-module (gnu packages)
32 #:use-module (gnu packages bison)
33 #:use-module (gnu packages compression)
34 #:use-module (gnu packages cups)
35 #:use-module (gnu packages databases)
36 #:use-module (gnu packages fontutils)
37 #:use-module (gnu packages flex)
38 #:use-module (gnu packages freedesktop)
39 #:use-module (gnu packages gl)
40 #:use-module (gnu packages glib)
41 #:use-module (gnu packages gnuzilla)
42 #:use-module (gnu packages gperf)
43 #:use-module (gnu packages gtk)
44 #:use-module (gnu packages icu4c)
45 #:use-module (gnu packages image)
46 #:use-module (gnu packages linux)
47 #:use-module (gnu packages databases)
48 #:use-module (gnu packages pciutils)
49 #:use-module (gnu packages pcre)
50 #:use-module (gnu packages perl)
51 #:use-module (gnu packages pkg-config)
52 #:use-module (gnu packages pulseaudio)
53 #:use-module (gnu packages python)
54 #:use-module (gnu packages ruby)
55 #:use-module (gnu packages tls)
56 #:use-module (gnu packages xdisorg)
57 #:use-module (gnu packages xorg)
58 #:use-module (gnu packages xml))
68 "http://download.qt.io/official_releases/qt/"
69 (version-major+minor version)
71 "/single/qt-everywhere-opensource-src-"
75 "0615cn4n3n78v48lnmapqz2jizm2pzrjwvsjlnsf4awrsiiqw0kg"))
76 (modules '((guix build utils)))
79 ;; Remove qtwebengine, which relies on a bundled copy of
80 ;; chromium. Not only does it fail compilation in qt 5.5:
81 ;; 3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc:362:10:
82 ;; error: cannot convert ‘bool’ to ‘boolean’ in return
83 ;; it might also pose security problems.
84 ;; Alternatively, we could use the "-skip qtwebengine"
85 ;; configuration option.
86 (delete-file-recursively "qtwebengine")
87 ;; Remove one of the two bundled harfbuzz copies in addition
88 ;; to passing "-system-harfbuzz".
89 (delete-file-recursively "qtbase/src/3rdparty/harfbuzz-ng")
90 ;; Remove the bundled sqlite copy in addition to
91 ;; passing "-system-sqlite".
92 (delete-file-recursively "qtbase/src/3rdparty/sqlite")))))
93 (build-system gnu-build-system)
97 `(("alsa-lib" ,alsa-lib)
101 ("fontconfig" ,fontconfig)
102 ("freetype" ,freetype)
104 ("harfbuzz" ,harfbuzz)
111 ("libxcomposite" ,libxcomposite)
112 ("libxcursor" ,libxcursor)
113 ("libxfixes" ,libxfixes)
115 ("libxinerama" ,libxinerama)
116 ("libxkbcommon" ,libxkbcommon)
118 ("libxrandr" ,libxrandr)
119 ("libxrender" ,libxrender)
126 ("postgresql" ,postgresql)
127 ("pulseaudio" ,pulseaudio)
131 ("unixodbc" ,unixodbc)
132 ("xcb-util" ,xcb-util)
133 ("xcb-util-image" ,xcb-util-image)
134 ("xcb-util-keysyms" ,xcb-util-keysyms)
135 ("xcb-util-renderutil" ,xcb-util-renderutil)
136 ("xcb-util-wm" ,xcb-util-wm)
143 ("pkg-config" ,pkg-config)
146 ("which" ,(@ (gnu packages base) which))))
148 `(;; FIXME: Disabling parallel building is a quick hack to avoid the
149 ;; failure described in
150 ;; https://lists.gnu.org/archive/html/guix-devel/2016-01/msg00837.html
151 ;; A more structural fix is needed.
156 (lambda* (#:key outputs #:allow-other-keys)
157 (let ((out (assoc-ref outputs "out")))
158 (substitute* '("configure" "qtbase/configure")
159 (("/bin/pwd") (which "pwd")))
160 (substitute* "qtbase/src/corelib/global/global.pri"
161 (("/bin/ls") (which "ls")))
162 ;; do not pass "--enable-fast-install", which makes the
163 ;; configure process fail
170 ;; Most "-system-..." are automatic, but some use
171 ;; the bundled copy by default.
174 ;; explicitly link with openssl instead of dlopening it
176 ;; explicitly link with dbus instead of dlopening it
178 ;; drop special machine instructions not supported
179 ;; on all instances of the target
180 ,@(if (string-prefix? "x86_64"
181 (or (%current-target-system)
194 (home-page "http://qt-project.org/")
195 (synopsis "Cross-platform GUI library")
196 (description "Qt is a cross-platform application and UI framework for
197 developers using C++ or QML, a CSS & JavaScript like language.")
200 ;; Qt 4: 'QBasicAtomicPointer' leads to build failures on MIPS;
201 ;; see <http://hydra.gnu.org/build/112828>.
202 ;; Qt 5: assembler error; see <http://hydra.gnu.org/build/112526>.
203 (supported-systems (delete "mips64el-linux" %supported-systems))))
206 (package (inherit qt)
210 (uri (string-append "http://download.qt-project.org/official_releases/qt/"
211 (string-copy version 0 (string-rindex version #\.))
213 "/qt-everywhere-opensource-src-"
217 "183fca7n7439nlhxyg1z7aky0izgbyll3iwakw4gwivy16aj5272"))
218 (patches (search-patches "qt4-ldflags.patch"))
219 (modules '((guix build utils)))
221 ;; Remove webkit module, which is not built.
222 '(delete-file-recursively "src/3rdparty/webkit"))))
223 (inputs `(,@(alist-delete "harfbuzz"
224 (alist-delete "libjpeg" (package-inputs qt)))
225 ("libjepg" ,libjpeg-8)
228 ;; Note: there are 37 MiB of examples and a '-exampledir' configure flags,
229 ;; but we can't make them a separate output because "out" and "examples"
230 ;; would refer to each other.
231 (outputs '("out" ;112MiB core + 37MiB examples
232 "doc")) ;280MiB of HTML + code
235 (modify-phases %standard-phases
238 (lambda* (#:key outputs #:allow-other-keys)
239 (let ((out (assoc-ref outputs "out"))
240 (doc (assoc-ref outputs "doc")))
241 (substitute* '("configure")
242 (("/bin/pwd") (which "pwd")))
248 ;; Note: Don't pass '-docdir' since 'qmake' and
249 ;; libQtCore would record its value, thereby defeating
250 ;; the whole point of having a separate output.
251 "-datadir" (string-append out "/share/qt-" ,version
253 "-importdir" (string-append out "/lib/qt-4"
255 "-plugindir" (string-append out "/lib/qt-4"
257 "-translationdir" (string-append out "/share/qt-" ,version
259 "-demosdir" (string-append out "/share/qt-" ,version
261 "-examplesdir" (string-append out "/share/qt-" ,version
265 ;; explicitly link with dbus instead of dlopening it
267 ;; Skip the webkit module; it fails to build on armhf
268 ;; and, apart from that, may pose security risks.
270 ;; drop special machine instructions not supported
271 ;; on all instances of the target
272 ,@(if (string-prefix? "x86_64"
273 (or (%current-target-system)
287 (lambda* (#:key outputs #:allow-other-keys)
288 ;; Because of qt4-documentation-path.patch, documentation ends up
289 ;; being installed in OUT. Move it to the right place.
290 (let* ((out (assoc-ref outputs "out"))
291 (doc (assoc-ref outputs "doc"))
292 (olddoc (string-append out "/doc"))
293 (docdir (string-append doc "/share/doc/qt-" ,version)))
294 (mkdir-p (dirname docdir))
296 ;; Note: We can't use 'rename-file' here because OUT and DOC are
297 ;; different "devices" due to bind-mounts.
298 (copy-recursively olddoc docdir)
299 (delete-file-recursively olddoc)
302 (define-public qtbase
308 (uri (string-append "https://download.qt.io/official_releases/qt/"
309 (version-major+minor version) "/" version
310 "/submodules/" name "-opensource-src-"
314 "0r3jrqymnnxrig4f11xvs33c26f0kzfakbp3kcbdpv795gpc276h"))
315 (modules '((guix build utils)))
318 ;; Remove one of the two bundled harfbuzz copies in addition
319 ;; to passing "-system-harfbuzz".
320 (delete-file-recursively "src/3rdparty/harfbuzz-ng")
321 ;; Remove the bundled sqlite copy in addition to
322 ;; passing "-system-sqlite".
323 (delete-file-recursively "src/3rdparty/sqlite")))))
324 (build-system gnu-build-system)
328 `(("alsa-lib" ,alsa-lib)
332 ("fontconfig" ,fontconfig)
333 ("freetype" ,freetype)
335 ("harfbuzz" ,harfbuzz)
341 ("libxcomposite" ,libxcomposite)
342 ("libxcursor" ,libxcursor)
343 ("libxfixes" ,libxfixes)
345 ("libxinerama" ,libxinerama)
346 ("libxkbcommon" ,libxkbcommon)
348 ("libxrandr" ,libxrandr)
349 ("libxrender" ,libxrender)
357 ("postgresql" ,postgresql)
358 ("pulseaudio" ,pulseaudio)
360 ("unixodbc" ,unixodbc)
361 ("xcb-util" ,xcb-util)
362 ("xcb-util-image" ,xcb-util-image)
363 ("xcb-util-keysyms" ,xcb-util-keysyms)
364 ("xcb-util-renderutil" ,xcb-util-renderutil)
365 ("xcb-util-wm" ,xcb-util-wm)
372 ("pkg-config" ,pkg-config)
375 ("which" ,(@ (gnu packages base) which))))
378 (modify-phases %standard-phases
379 (add-after 'configure 'patch-bin-sh
381 (substitute* '("config.status"
383 "mkspecs/features/qt_functions.prf"
384 "qmake/library/qmakebuiltins.cpp")
385 (("/bin/sh") (which "sh")))
388 (lambda* (#:key outputs #:allow-other-keys)
389 (let ((out (assoc-ref outputs "out")))
390 (substitute* "configure"
391 (("/bin/pwd") (which "pwd")))
392 (substitute* "src/corelib/global/global.pri"
393 (("/bin/ls") (which "ls")))
394 ;; do not pass "--enable-fast-install", which makes the
395 ;; configure process fail
402 ;; Do not build examples; if desired, these could go
403 ;; into a separate output, but for the time being, we
404 ;; prefer to save the space and build time.
406 ;; Most "-system-..." are automatic, but some use
407 ;; the bundled copy by default.
410 ;; explicitly link with openssl instead of dlopening it
412 ;; explicitly link with dbus instead of dlopening it
414 ;; drop special machine instructions not supported
415 ;; on all instances of the target
416 ,@(if (string-prefix? "x86_64"
417 (or (%current-target-system)
428 "-no-mips_dspr2"))))))))
429 (home-page "https://www.qt.io/")
430 (synopsis "Cross-platform GUI library")
431 (description "Qt is a cross-platform application and UI framework for
432 developers using C++ or QML, a CSS & JavaScript like language.")
433 (license (list lgpl2.1 lgpl3))))
436 (package (inherit qtbase)
441 (uri (string-append "https://download.qt.io/official_releases/qt/"
442 (version-major+minor version) "/" version
443 "/submodules/" name "-opensource-src-"
447 "08ca5g46g75acy27jfnvnalmcias5hxmjp7491v3y4k9y7a4ybpi"))))
448 (propagated-inputs `())
449 (native-inputs `(("perl" ,perl)))
456 (modify-phases %standard-phases
458 (lambda* (#:key outputs #:allow-other-keys)
459 (let ((out (assoc-ref outputs "out")))
460 (zero? (system* "qmake" (string-append "PREFIX=" out))))))
461 (add-before 'install 'fix-Makefiles
462 (lambda* (#:key inputs outputs #:allow-other-keys)
463 (let ((out (assoc-ref outputs "out"))
464 (qtbase (assoc-ref inputs "qtbase")))
465 (substitute* (find-files "." "Makefile")
466 (((string-append "INSTALL_ROOT)" qtbase))
467 (string-append "INSTALL_ROOT)" out)))))))))))
469 (define-public qtimageformats
470 (package (inherit qtsvg)
471 (name "qtimageformats")
475 (uri (string-append "https://download.qt.io/official_releases/qt/"
476 (version-major+minor version) "/" version
477 "/submodules/" name "-opensource-src-"
481 "020v1148433zx4g87z2r8fgff32n0laajxqqsja1l3yzz7jbrwvl"))))
491 (define-public qtx11extras
492 (package (inherit qtsvg)
497 (uri (string-append "https://download.qt.io/official_releases/qt/"
498 (version-major+minor version) "/" version
499 "/submodules/" name "-opensource-src-"
503 "0l736qiz8adrnh267xz63hv4sph6nhy90h836qfnnmv3p78ipsz8"))))
504 (native-inputs `(("perl" ,perl)))
507 ("qtbase" ,qtbase)))))
509 (define-public qtxmlpatterns
510 (package (inherit qtsvg)
511 (name "qtxmlpatterns")
515 (uri (string-append "https://download.qt.io/official_releases/qt/"
516 (version-major+minor version) "/" version
517 "/submodules/" name "-opensource-src-"
521 "0q412jv3xbg7v05b8pbahifwx17gzlp96s90akh6zwhpm8i6xx34"))))
522 (native-inputs `(("perl" ,perl)))
523 (inputs `(("qtbase" ,qtbase)))))
525 (define-public qtdeclarative
526 (package (inherit qtsvg)
527 (name "qtdeclarative")
531 (uri (string-append "https://download.qt.io/official_releases/qt/"
532 (version-major+minor version) "/" version
533 "/submodules/" name "-opensource-src-"
537 "1d2217kxk85kpi7ls08b41hqzy26hvch8m4cgzq6km5sqi5zvz0j"))))
540 ("pkg-config" ,pkg-config)
543 ("qtxmlpatterns" ,qtxmlpatterns)))
546 ("qtbase" ,qtbase)))))
548 (define-public qtconnectivity
549 (package (inherit qtsvg)
550 (name "qtconnectivity")
554 (uri (string-append "https://download.qt.io/official_releases/qt/"
555 (version-major+minor version) "/" version
556 "/submodules/" name "-opensource-src-"
560 "06fr9321f52kf0nda9zjjfzp5694hbnx0y0v315iw28mnpvandas"))))
563 ("pkg-config" ,pkg-config)
564 ("qtdeclarative" ,qtdeclarative)))
567 ("qtbase" ,qtbase)))))
569 (define-public qtwebsockets
570 (package (inherit qtsvg)
571 (name "qtwebsockets")
575 (uri (string-append "https://download.qt.io/official_releases/qt/"
576 (version-major+minor version) "/" version
577 "/submodules/" name "-opensource-src-"
581 "0fkj52i4yi6gmq4jfjgdij08cspxspac6mbpf0fknnllimmkl7jm"))))
584 ("qtdeclarative" ,qtdeclarative)))
585 (inputs `(("qtbase" ,qtbase)))))
587 (define-public qtsensors
588 (package (inherit qtsvg)
593 (uri (string-append "https://download.qt.io/official_releases/qt/"
594 (version-major+minor version) "/" version
595 "/submodules/" name "-opensource-src-"
599 "0bll7ll6s5g8w89knyrc0famjwqyfzwpn512m1f96bf6xwacs967"))))
602 ("qtdeclarative" ,qtdeclarative)))
603 (inputs `(("qtbase" ,qtbase)))))
605 (define-public qtmultimedia
606 (package (inherit qtsvg)
607 (name "qtmultimedia")
611 (uri (string-append "https://download.qt.io/official_releases/qt/"
612 (version-major+minor version) "/" version
613 "/submodules/" name "-opensource-src-"
617 "058523c2qra3d8fq46ygcndnkrbwlh316zy28s2cr5pjr5gmnjyj"))))
620 ("pkg-config" ,pkg-config)
622 ("qtdeclarative" ,qtdeclarative)))
624 `(("alsa-lib" ,alsa-lib)
626 ("pulseaudio" ,pulseaudio)
627 ("qtbase" ,qtbase)))))
629 (define-public qtwayland
630 (package (inherit qtsvg)
635 (uri (string-append "https://download.qt.io/official_releases/qt/"
636 (version-major+minor version) "/" version
637 "/submodules/" name "-opensource-src-"
641 "1jgghjfrg0wwyfzfwgwhagwxz9k936ylv3w2l9bwlpql8rgm8d11"))))
645 ("pkg-config" ,pkg-config)
646 ("qtdeclarative" ,qtdeclarative)))
648 `(("fontconfig" ,fontconfig)
649 ("freetype" ,freetype)
651 ("libxcomposite" ,libxcomposite)
653 ("libxkbcommon" ,libxkbcommon)
654 ("libxrender" ,libxrender)
658 ("wayland" ,wayland)))))
660 (define-public qtserialport
661 (package (inherit qtsvg)
662 (name "qtserialport")
666 (uri (string-append "https://download.qt.io/official_releases/qt/"
667 (version-major+minor version) "/" version
668 "/submodules/" name "-opensource-src-"
672 "1hp63cgqhps6y1k041lzhcb2b0rcpcmszabnn293q5ilbvla4x0b"))))
673 (native-inputs `(("perl" ,perl)))
674 (inputs `(("qtbase" ,qtbase)))))
676 (define-public qtwebchannel
677 (package (inherit qtsvg)
678 (name "qtwebchannel")
682 (uri (string-append "https://download.qt.io/official_releases/qt/"
683 (version-major+minor version) "/" version
684 "/submodules/" name "-opensource-src-"
688 "01q80917a1048hdhaii4v50dqs84h16lc9w3v99r9xvspk8vab7q"))))
691 ("qtdeclarative" ,qtdeclarative)
692 ("qtwebsockets" ,qtwebsockets)))
693 (inputs `(("qtbase" ,qtbase)))))
695 (define-public qtlocation
696 (package (inherit qtsvg)
701 (uri (string-append "https://download.qt.io/official_releases/qt/"
702 (version-major+minor version) "/" version
703 "/submodules/" name "-opensource-src-"
707 "0qahs7a2n3l4h0bl8bnwci9mzy1vra3zncnzr40csic9ys67ddfk"))))
710 ("qtdeclarative" ,qtdeclarative)
711 ;("qtquickcontrols" ,qtquickcontrols)
712 ("qtserialport" ,qtserialport)))
713 (inputs `(("qtbase" ,qtbase)))))
715 (define-public qttools
716 (package (inherit qtsvg)
721 (uri (string-append "https://download.qt.io/official_releases/qt/"
722 (version-major+minor version) "/" version
723 "/submodules/" name "-opensource-src-"
727 "0wbzq60d7lkvlb7b5lqcw87qgy6kyjz1npjavz8f4grdxsaqi8vp"))))
730 ("qtdeclarative" ,qtdeclarative)))
733 ("qtbase" ,qtbase)))))
741 (uri (string-append "https://github.com/flavio/qjson/archive/"
743 (file-name (string-append name "-" version ".tar.gz"))
746 "163fspi0xc705irv79qw861fmh68pjyla9vx3kqiq6xrdhb9834j"))))
747 (build-system cmake-build-system)
751 `(#:tests? #f)) ; no test target
752 (home-page "http://qjson.sourceforge.net/")
753 (synopsis "Qt-based library for handling JSON")
754 (description "QJson is a Qt-based library that maps JSON data to QVariant
755 objects and vice versa. JSON arrays are mapped to QVariantList instances,
756 while JSON objects are mapped to QVariantMap.")
759 (define-public python-sip
767 (string-append "mirror://sourceforge/pyqt/sip/"
768 "sip-" version "/sip-" version ".tar.gz"))
771 "1dlw4kyiwd9bzmd1djm79c121r219abaz86lvizdk6ksq20mrp7i"))))
772 (build-system gnu-build-system)
774 `(("python" ,python-wrapper)))
776 `(#:tests? #f ; no check target
777 #:modules ((srfi srfi-1)
778 ,@%gnu-build-system-modules)
780 (modify-phases %standard-phases
782 (lambda* (#:key inputs outputs #:allow-other-keys)
783 (let* ((out (assoc-ref outputs "out"))
784 (bin (string-append out "/bin"))
785 (include (string-append out "/include"))
786 (python (assoc-ref inputs "python"))
788 (last (string-split python #\-)))
791 (take (string-split python-version #\.) 2)
793 (lib (string-append out "/lib/python"
797 (system* "python" "configure.py"
800 "--incdir" include))))))))
801 (home-page "https://www.riverbankcomputing.com/software/sip/intro")
802 (synopsis "Python binding creator for C and C++ libraries")
804 "SIP is a tool to create Python bindings for C and C++ libraries. It
805 was originally developed to create PyQt, the Python bindings for the Qt
806 toolkit, but can be used to create bindings for any C or C++ library.
808 SIP comprises a code generator and a Python module. The code generator
809 processes a set of specification files and generates C or C++ code, which
810 is then compiled to create the bindings extension module. The SIP Python
811 module provides support functions to the automatically generated code.")
812 ;; There is a choice between a python like license, gpl2 and gpl3.
813 ;; For compatibility with pyqt, we need gpl3.
816 (define-public python2-sip
817 (package (inherit python-sip)
820 `(("python" ,python-2)))))
822 (define-public python-pyqt
830 (string-append "mirror://sourceforge/pyqt/PyQt5/"
831 "PyQt-" version "/PyQt5_gpl-"
835 "1qgh42zsr9jppl9k7fcdbhxcd1wrb7wyaj9lng9nxfa19in1lj1f"))
836 (patches (search-patches "pyqt-configure.patch"))))
837 (build-system gnu-build-system)
839 `(("python-sip" ,python-sip)
840 ("qtbase" ,qtbase))) ; for qmake
842 `(("python" ,python-wrapper)))
844 `(#:modules ((srfi srfi-1)
845 ,@%gnu-build-system-modules)
847 (modify-phases %standard-phases
849 (lambda* (#:key inputs outputs #:allow-other-keys)
850 (let* ((out (assoc-ref outputs "out"))
851 (bin (string-append out "/bin"))
852 (sip (string-append out "/share/sip"))
853 (plugins (string-append out "/plugins"))
854 (designer (string-append plugins "/designer"))
855 (qml (string-append plugins "/PyQt5"))
856 (python (assoc-ref inputs "python"))
858 (last (string-split python #\-)))
861 (take (string-split python-version #\.) 2)
863 (lib (string-append out "/lib/python"
866 (zero? (system* "python" "configure.py"
870 "--designer-plugindir" designer
871 "--qml-plugindir" qml
872 "--sipdir" sip))))))))
873 (home-page "https://www.riverbankcomputing.com/software/pyqt/intro")
874 (synopsis "Python bindings for Qt")
876 "PyQt is a set of Python v2 and v3 bindings for the Qt application
877 framework. The bindings are implemented as a set of Python modules and
878 contain over 620 classes.")
881 (define-public python2-pyqt
882 (package (inherit python-pyqt)
883 (name "python2-pyqt")
885 `(("python-sip" ,python2-sip)
888 `(("python" ,python-2)))))
890 (define-public python-pyqt-4
891 (package (inherit python-pyqt)
898 (string-append "mirror://sourceforge/pyqt/PyQt4/"
899 "PyQt-" version "/PyQt-x11-gpl-"
903 "01zlviy5lq8g6db84wnvvpsrfnip9lbcpxagsyqa6as3jmsff7zw"))))
905 `(("python-sip" ,python-sip)
908 `(#:tests? #f ; no check target
909 #:modules ((srfi srfi-1)
910 ,@%gnu-build-system-modules)
914 (lambda* (#:key inputs outputs #:allow-other-keys)
915 (let* ((out (assoc-ref outputs "out"))
916 (bin (string-append out "/bin"))
917 (sip (string-append out "/share/sip"))
918 (python (assoc-ref inputs "python"))
920 (last (string-split python #\-)))
923 (take (string-split python-version #\.) 2)
925 (lib (string-append out "/lib/python"
928 (zero? (system* "python" "configure.py"
934 (license (list gpl2 gpl3)))) ; choice of either license
936 (define-public qtkeychain
943 (uri (string-append "https://github.com/frankosterfeld/qtkeychain/"
944 "archive/v" version ".tar.gz"))
945 (file-name (string-append name "-" version ".tar.gz"))
947 (base32 "0fka5q5cdzlf79igcjgbnb2smvwbwfasqawkzkbr34whispgm6lz"))))
948 (build-system cmake-build-system)
952 `(#:tests? #f ; No tests included
954 (modify-phases %standard-phases
956 'configure 'set-qt-trans-dir
958 (substitute* "CMakeLists.txt"
959 (("\\$\\{qt_translations_dir\\}")
960 "${CMAKE_INSTALL_PREFIX}/share/qt/translations")))))))
961 (home-page "https://github.com/frankosterfeld/qtkeychain")
962 (synopsis "Qt API to store passwords")
964 "QtKeychain is a Qt library to store passwords and other secret data
965 securely. It will not store any data unencrypted unless explicitly requested.")