(use-modules ((guix licenses) #:prefix license:) (guix build-system python) (guix download) (guix git-download) (guix packages) (guix utils) (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+))) (define-public python-android-stringslib (package (name "python-android-stringslib") (version "0.1.1.1") (source (origin (method git-fetch) (uri (git-reference (url "https://framagit.org/tyreunom/python-android-strings-lib") (commit "a105ce50c5d67a2ada3be1c00ae530cde5c433c9"))) (file-name (git-file-name name version)) (sha256 (base32 "10kadzd91sl5mwpam193h777i6fhafc8v6bp6s0j92pg2kd775vl")))) (build-system python-build-system) (arguments `(#:tests? #f)) (home-page "https://framagit.org/tyreunom/python-android-strings-lib") (synopsis "Android Strings Lib provides support for android's strings.xml files. These files are used to translate strings in android apps.") (description "Android Strings Lib provides support for android's strings.xml files. These files are used to translate strings in android apps.") (license license:expat))) (define-public python-pathtools (package (name "python-pathtools") (version "0.1.2") (source (origin (method url-fetch) (uri (pypi-uri "pathtools" version)) (sha256 (base32 "1h7iam33vwxk8bvslfj4qlsdprdnwf8bvzhqh3jq5frr391cadbw")))) (build-system python-build-system) (home-page "http://github.com/gorakhargosh/pathtools") (synopsis "File system general utilities") (description "File system general utilities") (license #f))) (define-public python-iocapture (package (name "python-iocapture") (version "0.1.2") (source (origin (method url-fetch) (uri (pypi-uri "iocapture" version)) (sha256 (base32 "1s3ywdr0l3kfrrqi079iv16g0rp75akkvx0j07vx9p5w10c0wrw6")))) (build-system python-build-system) (native-inputs `(("python-flexmock" ,python-flexmock) ("python-pytest-cov" ,python-pytest-cov) ("python-six" ,python-six))) (home-page "https://github.com/oinume/iocapture") (synopsis "Capture stdout, stderr easily.") (description "Capture stdout, stderr easily.") (license license:expat))) (define-public python-argh (package (name "python-argh") (version "0.26.2") (source (origin (method url-fetch) (uri (pypi-uri "argh" version)) (sha256 (base32 "0rdv0n2aa181mkrybwvl3czkrrikgzd4y2cri6j735fwhj65nlz9")))) (build-system python-build-system) (native-inputs `(("python-iocapture" ,python-iocapture) ("python-mock" ,python-mock) ("python-pytest" ,python-pytest))) (home-page "http://github.com/neithere/argh/") (synopsis "An unobtrusive argparse wrapper with natural syntax") (description "An unobtrusive argparse wrapper with natural syntax") (license #f))) (define-public python-watchdog (package (name "python-watchdog") (version "0.9.0") (source (origin (method url-fetch) (uri (pypi-uri "watchdog" version)) (sha256 (base32 "07cnvvlpif7a6cg4rav39zq8fxa5pfqawchr46433pij0y6napwn")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-before 'check 'remove-failing (lambda _ (delete-file "tests/test_inotify_buffer.py") (delete-file "tests/test_snapshot_diff.py") #t))))) (propagated-inputs `(("python-argh" ,python-argh) ("python-pathtools" ,python-pathtools) ("python-pyyaml" ,python-pyyaml))) (native-inputs `(("python-pytest-cov" ,python-pytest-cov) ("python-pytest-timeout" ,python-pytest-timeout))) (home-page "http://github.com/gorakhargosh/watchdog") (synopsis "Filesystem events monitoring") (description "Filesystem events monitoring") (license #f))) (define-public python-altgraph (package (name "python-altgraph") (version "0.16.1") (source (origin (method url-fetch) (uri (pypi-uri "altgraph" version)) (sha256 (base32 "034vgy3nnm58rs4a6k83m9imayxx35k0p3hr22wafyql2w035xfx")))) (build-system python-build-system) (home-page "https://altgraph.readthedocs.io") (synopsis "Python graph (network) package") (description "Python graph (network) package") (license license:expat))) (define-public python-pyinstaller (package (name "python-pyinstaller") (version "3.5") (source (origin (method url-fetch) (uri (pypi-uri "PyInstaller" version)) (sha256 (base32 "15ha3mmy4p93rpwcy2b3vcgwfsm5bq9z5yjh88ra6chk5l108xgf")))) (build-system python-build-system) (arguments `(#:tests? #f #:phases (modify-phases %standard-phases (delete 'validate-runpath)))) (propagated-inputs `(("python-altgraph" ,python-altgraph) ("python-setuptools" ,python-setuptools))) (home-page "http://www.pyinstaller.org") (synopsis "PyInstaller bundles a Python application and all its dependencies into a single package.") (description "PyInstaller bundles a Python application and all its dependencies into a single package.") (license #f))) (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-android-stringslib" ,python-android-stringslib) ("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-pygithub" ,python-pygithub) ("python-pyqt" ,python-pyqt) ("python-requests" ,python-requests) ("python-ruamel.yaml" ,python-ruamel.yaml) ("python-translation-finder" ,python-translation-finder) ("python-watchdog" ,python-watchdog))) (native-inputs `(("python-pyinstaller" ,python-pyinstaller) ("qttools" ,qttools))) (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+))