(use-modules ((guix licenses) #:prefix license:) (guix build-system python) (guix download) (guix git-download) (guix packages) (gnu packages aspell) (gnu packages check) (gnu packages enchant) (gnu packages libreoffice) (gnu packages python-web) (gnu packages python-xyz) (gnu packages qt) (gnu packages serialization) (gnu packages time) (gnu packages version-control)) (define-public python-pyenchant (package (name "python-pyenchant") (version "2.0.0") (source (origin (method url-fetch) (uri (pypi-uri "pyenchant" version)) (sha256 (base32 "1872ckgdip8nj9rnh167m0gsj5754qfg2hjxzsl1s06f5akwscgw")))) (build-system python-build-system) (arguments `(#:tests? #f; FIXME: Dictionary for language 'en_US' could not be found #:phases (modify-phases %standard-phases (add-before 'build 'setlib (lambda* (#:key inputs #:allow-other-keys) (substitute* "enchant/_enchant.py" (("/opt/local/lib/libenchant.dylib\"") (string-append "/opt/local/lib/libenchant.dylib\"\n" " yield \"" (assoc-ref inputs "enchant") "/lib/libenchant-2.so\"")))))))) ;(setenv "PYENCHANT_LIBRARY_PATH" ; (string-append (assoc-ref inputs "enchant") "/lib/libenchant.so"))))))) (propagated-inputs `(("enchant" ,enchant) ("hunspell" ,hunspell))) (native-inputs `(("hunspell-dict-en-us" ,hunspell-dict-en-us))) (home-page "") (synopsis "") (description "") (license license:lgpl2.1+))) (define-public python-check-manifest (package (name "python-check-manifest") (version "0.37") (source (origin (method url-fetch) (uri (pypi-uri "check-manifest" version)) (sha256 (base32 "0lk45ifdv2cpkl6ayfyix7jwmnxa1rha7xvb0ih5999k115wzqs4")))) (build-system python-build-system) (native-inputs `(("python-mock" ,python-mock) ("git" ,git))) (home-page "https://github.com/mgedmin/check-manifest") (synopsis "Check MANIFEST.in in a Python source package for completeness") (description "Check MANIFEST.in in a Python source package for completeness") (license license:expat))) (define-public python-codacy-coverage (package (name "python-codacy-coverage") (version "1.3.11") (source (origin (method url-fetch) (uri (pypi-uri "codacy-coverage" version)) (sha256 (base32 "1g0c0w56xdkmqb8slacyw5qhzrkp814ng3ddh2lkiij58y9m2imr")))) (build-system python-build-system) (arguments ;; No tests `(#:tests? #f)) (propagated-inputs `(("python-check-manifest" ,python-check-manifest))) (home-page "https://github.com/codacy/python-codacy-coverage") (synopsis "Codacy coverage reporter for Python") (description "Codacy coverage reporter for Python") (license license:expat))) (define-public python-translation-finder (package (name "python-translation-finder") (version "1.6") (source (origin (method url-fetch) (uri (pypi-uri "translation-finder" version)) (sha256 (base32 "0lq9441ziiq8aw8ldippkcvzhyw12lfra72kc6f5ik3rvw612m2a")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-before 'build 'remove-failing-test (lambda _ (delete-file "translation_finder/test_api.py") #t))))) (propagated-inputs `(("python-chardet" ,python-chardet) ("python-pathlib2" ,python-pathlib2) ("python-ruamel.yaml" ,python-ruamel.yaml) ("python-six" ,python-six))) (native-inputs `(("python-codecov" ,python-codecov) ("python-codacy-coverage" ,python-codacy-coverage) ("python-pytest-cov" ,python-pytest-cov) ("python-pytest-runner" ,python-pytest-runner) ("python-twine" ,python-twine))) (home-page "https://weblate.org/") (synopsis "A translation file finder for Weblate, translation tool with tight version control integration") (description "A translation file finder for Weblate, translation tool with tight version control integration") (license license:gpl3+))) (define-public python-httmock (package (name "python-httmock") (version "1.3.0") (source (origin (method url-fetch) (uri (pypi-uri "httmock" version)) (sha256 (base32 "1zj1fcm0n6f0wr9mr0hmlqz9430fnr5cdwd5jkcvq9j44bnsrfz0")))) (build-system python-build-system) (arguments ;; Tests can't be run? `(#:tests? #f)) (propagated-inputs `(("python-requests" ,python-requests))) (home-page "https://github.com/patrys/httmock") (synopsis "A mocking library for requests.") (description "A mocking library for requests.") (license license:asl2.0))) (define-public python-gitlab (package (name "python-gitlab") (version "1.10.0") (source (origin (method url-fetch) (uri (pypi-uri "python-gitlab" version)) (sha256 (base32 "0n2s4cmmrhx1yxpfa6xfkncairgrcvcmvhq2sx4k0k65cy9ipsf4")))) (build-system python-build-system) (propagated-inputs `(("python-requests" ,python-requests) ("python-six" ,python-six))) (native-inputs `(("python-httmock" ,python-httmock) ("python-mock" ,python-mock))) (home-page "https://github.com/python-gitlab/python-gitlab") (synopsis "Interact with GitLab API") (description "Interact with GitLab API") (license license:lgpl3+))) (package (name "offlate") (version "0.4") (source (origin (method git-fetch) (uri (git-reference (url "https://framagit.org/tyreunom/offlate") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "10l03j8ajkd1a7sg1zycbpdaz71mscrncw7rwjzqk2ia6j04rwxm")))) (build-system python-build-system) (arguments ;; No tests `(#:tests? #f)) (propagated-inputs `(("python-dateutil" ,python-dateutil) ("python-gitlab" ,python-gitlab) ("python-lxml" ,python-lxml) ("python-polib" ,python-polib) ("python-pyenchant" ,python-pyenchant) ("python-pygit2" ,python-pygit2) ("python-pyqt" ,python-pyqt) ("python-requests" ,python-requests) ("python-ruamel.yaml" ,python-ruamel.yaml) ("python-translation-finder" ,python-translation-finder))) (home-page "https://framagit.org/tyreunom/offlate") (synopsis "Offline translation interface for online translation tools.") (description "Offline translation interface for online translation tools.") (license license:gpl3+))