update offlate to a working version

Julien LepillerThu May 10 11:19:20+0200 2018

7dc6a07

update offlate to a working version

more/packages/python.scm

3131
  #:use-module (gnu packages python)
3232
  #:use-module (gnu packages python-crypto)
3333
  #:use-module (gnu packages python-web)
34+
  #:use-module (gnu packages qt)
35+
  #:use-module (gnu packages serialization)
3436
  #:use-module (gnu packages time)
3537
  #:use-module (gnu packages tls)
3638
  #:use-module (guix packages)

708710
     `(#:tests? #f; FIXME: Dictionary for language 'en_US' could not be found
709711
       #:phases
710712
       (modify-phases %standard-phases
711-
         (add-before 'build 'setenv
713+
         (add-before 'build 'setlib
712714
           (lambda* (#:key inputs #:allow-other-keys)
713-
             (setenv "PYENCHANT_LIBRARY_PATH"
714-
                     (string-append (assoc-ref inputs "enchant") "/lib/libenchant.so")))))))
715-
    (inputs
715+
             (substitute* "enchant/_enchant.py"
716+
               (("/opt/local/lib/libenchant.dylib\"")
717+
                (string-append "/opt/local/lib/libenchant.dylib\"\n"
718+
                               "    yield \"" (assoc-ref inputs "enchant")
719+
                               "/lib/libenchant.so\""))))))))
720+
             ;(setenv "PYENCHANT_LIBRARY_PATH"
721+
             ;        (string-append (assoc-ref inputs "enchant") "/lib/libenchant.so")))))))
722+
    (propagated-inputs
716723
     `(("enchant" ,enchant)
717724
       ("hunspell" ,hunspell)))
718725
    (native-inputs

730737
              (method git-fetch)
731738
              (uri (git-reference
732739
                     (url "https://framagit.org/tyreunom/offlate")
733-
                     (commit "ed8579552331ecdf5975c4bcbbf1f17651282b30")))
740+
                     (commit "341bf4422116ec914f8229315e62463002d4d251")))
734741
              (sha256
735742
               (base32
736-
                "0hisx9x5a15yk3y18ra4mvca5iv7rcsnijcaly4z3aqc56bg1rm0"))))
737-
    ;(source (origin
738-
    ;          (method url-fetch)
739-
    ;          (uri (pypi-uri "offlate" version))
740-
    ;          (sha256
741-
    ;           (base32
742-
    ;            "1872ckgdip8nj9rnh167m0gsj5754qfg2hjxzsl1s06f5akwscgw"))))
743+
                "1nbcnhggnvbvlbhqsa1db6nvhqbgjc7khsb55lc9xnwk5ar8bf0j"))))
743744
    (build-system python-build-system)
744745
    (arguments
745-
     `(#:tests? #f
746-
       #:phases
747-
       (modify-phases %standard-phases
748-
         (add-before 'build 'fix-setup
749-
           (lambda _
750-
             (substitute* "setup.py"
751-
               (("config', \\['d") "offlate', ['offlate/d"))
752-
             #t)))))
746+
     `(#:tests? #f))
753747
    (propagated-inputs
754748
     `(("python-android-stringslib" ,python-android-stringslib)
755749
       ("python-dateutil" ,python-dateutil)
756-
       ("python-pyenchant" ,python-pyenchant)))
750+
       ("python-lxml" ,python-lxml)
751+
       ("python-pyenchant" ,python-pyenchant)
752+
       ("python-ruamel.yaml" ,python-ruamel.yaml)
753+
       ("python-polib" ,python-polib)
754+
       ("python-pyqt" ,python-pyqt)
755+
       ("python-requests" ,python-requests)))
757756
    (home-page "https://framagit.org/tyreunom/offlate")
758757
    (synopsis "")
759758
    (description "")