guix.scm
1 | (use-modules |
2 | ((guix licenses) #:prefix license:) |
3 | (guix build-system python) |
4 | (guix download) |
5 | (guix git-download) |
6 | (guix git) |
7 | (guix packages) |
8 | (guix utils) |
9 | (gnu packages aspell) |
10 | (gnu packages check) |
11 | (gnu packages enchant) |
12 | (gnu packages fontutils) |
13 | (gnu packages freedesktop) |
14 | (gnu packages libreoffice) |
15 | (gnu packages python-web) |
16 | (gnu packages python-xyz) |
17 | (gnu packages qt) |
18 | (gnu packages serialization) |
19 | (gnu packages sphinx) |
20 | (gnu packages time) |
21 | (gnu packages version-control) |
22 | (gnu packages xml)) |
23 | |
24 | (define my-python-android-stringslib |
25 | (package |
26 | (inherit python-android-stringslib) |
27 | (source (origin |
28 | (method git-fetch) |
29 | (uri (git-reference |
30 | (url "https://framagit.org/tyreunom/python-android-strings-lib") |
31 | (commit "bea536ba7878ac1b569af45bffa2e4396bf134dc"))) |
32 | (file-name (git-file-name "python-android-stringslib" "1.2")) |
33 | (sha256 |
34 | (base32 |
35 | "01adzm17cs5980f7d2222lpgdar5n99chyap7541aa4wc6gm9wqs")))))) |
36 | |
37 | (define-public offlate |
38 | (package |
39 | (name "offlate") |
40 | (version "0.5") |
41 | (source (git-checkout (url (dirname (current-filename))))) |
42 | (build-system python-build-system) |
43 | (arguments |
44 | ;; No tests |
45 | `(#:tests? #f)) |
46 | (propagated-inputs |
47 | `(("python-android-stringslib" ,my-python-android-stringslib) |
48 | ("python-dateutil" ,python-dateutil) |
49 | ("python-gitlab" ,python-gitlab) |
50 | ("python-lxml" ,python-lxml) |
51 | ("python-polib" ,python-polib) |
52 | ("python-pyenchant" ,python-pyenchant) |
53 | ("python-pygit2" ,python-pygit2) |
54 | ("python-pygithub" ,python-pygithub) |
55 | ("python-pyqt" ,python-pyqt) |
56 | ("python-requests" ,python-requests) |
57 | ("python-ruamel.yaml" ,python-ruamel.yaml) |
58 | ("python-translation-finder" ,python-translation-finder) |
59 | ("python-watchdog" ,python-watchdog))) |
60 | (native-inputs |
61 | `(("fontforge" ,fontforge) |
62 | ("qttools" ,qttools) |
63 | ("python-sphinx" ,python-sphinx))) |
64 | (home-page "https://framagit.org/tyreunom/offlate") |
65 | (synopsis "Offline translation interface for online translation tools") |
66 | (description "Offlate offers a unified interface for different translation |
67 | file formats, as well as many different online translation platforms. You can |
68 | use it to get work from online platforms, specialized such as the Translation |
69 | Project, or not such a gitlab instance when your upstream doesn't use any |
70 | dedicated platform. The tool proposes a unified interface for any format and |
71 | an upload option to send your work back to the platform.") |
72 | (license license:gpl3+))) |
73 | |
74 | offlate |
75 |