Update build instructions
guix.scm
12 | 12 | (gnu packages fontutils) | |
13 | 13 | (gnu packages freedesktop) | |
14 | 14 | (gnu packages libreoffice) | |
15 | + | (gnu packages python) | |
15 | 16 | (gnu packages python-web) | |
16 | 17 | (gnu packages python-xyz) | |
17 | 18 | (gnu packages qt) | |
… | |||
41 | 42 | (source (git-checkout (url (dirname (current-filename))))) | |
42 | 43 | (build-system python-build-system) | |
43 | 44 | (arguments | |
44 | - | ;; No tests | |
45 | - | `(#:tests? #f)) | |
46 | - | (propagated-inputs | |
45 | + | `(#:modules ((guix build python-build-system) | |
46 | + | (guix build qt-utils) | |
47 | + | (guix build utils)) | |
48 | + | #:imported-modules (,@%python-build-system-modules | |
49 | + | (guix build qt-utils)) | |
50 | + | ;; No tests | |
51 | + | #:tests? #f | |
52 | + | #:phases | |
53 | + | (modify-phases %standard-phases | |
54 | + | (add-before 'build 'generate-fonts | |
55 | + | (lambda _ | |
56 | + | (invoke "make" "fonts"))) | |
57 | + | (add-after 'install 'wrap-qt | |
58 | + | (lambda* (#:key inputs outputs #:allow-other-keys) | |
59 | + | (let ((out (assoc-ref outputs "out"))) | |
60 | + | (wrap-qt-program "offlate" #:output out #:inputs inputs)))) | |
61 | + | (add-after 'install 'wrap-offlate | |
62 | + | (lambda* (#:key outputs #:allow-other-keys) | |
63 | + | (wrap-program | |
64 | + | (string-append (assoc-ref outputs "out") "/bin/offlate") | |
65 | + | `("PYTHONPATH" ":" prefix | |
66 | + | (,(string-append (getenv "PYTHONPATH") ":" | |
67 | + | (assoc-ref outputs "out") "/lib/python" | |
68 | + | ,(version-major+minor (package-version python-wrapper)) | |
69 | + | "/site-packages"))))))))) | |
70 | + | (inputs | |
47 | 71 | `(("python-android-stringslib" ,my-python-android-stringslib) | |
48 | 72 | ("python-dateutil" ,python-dateutil) | |
49 | 73 | ("python-gitlab" ,python-gitlab) | |
50 | 74 | ("python-lxml" ,python-lxml) | |
51 | 75 | ("python-polib" ,python-polib) | |
76 | + | ("python-pycountry" ,python-pycountry) | |
52 | 77 | ("python-pyenchant" ,python-pyenchant) | |
53 | 78 | ("python-pygit2" ,python-pygit2) | |
54 | 79 | ("python-pygithub" ,python-pygithub) | |
55 | 80 | ("python-pyqt" ,python-pyqt) | |
56 | 81 | ("python-requests" ,python-requests) | |
57 | 82 | ("python-ruamel.yaml" ,python-ruamel.yaml) | |
83 | + | ("python-translate-toolkit" ,python-translate-toolkit) | |
58 | 84 | ("python-translation-finder" ,python-translation-finder) | |
59 | 85 | ("python-watchdog" ,python-watchdog))) | |
60 | 86 | (native-inputs |
setup.py
23 | 23 | packages=find_packages(exclude=['.guix-profile*']), | |
24 | 24 | python_requires = '>=3', | |
25 | 25 | install_requires=['polib', 'ruamel.yaml', 'python-dateutil', 'PyQt5', 'pygit2', | |
26 | - | 'python-gitlab', 'translation-finder', 'android-stringslib', 'watchdog', | |
27 | - | 'PyGithub', 'lxml', 'pyenchant'], | |
26 | + | 'python-gitlab', 'translate-toolkit', 'translation-finder', | |
27 | + | 'android-stringslib', 'watchdog', 'PyGithub', 'lxml', 'pyenchant'], | |
28 | 28 | entry_points={ | |
29 | 29 | 'gui_scripts': [ | |
30 | 30 | 'offlate=offlate.ui.main:main', |