update offlate to a working version
more/packages/python.scm
31 | 31 | #:use-module (gnu packages python) | |
32 | 32 | #:use-module (gnu packages python-crypto) | |
33 | 33 | #:use-module (gnu packages python-web) | |
34 | + | #:use-module (gnu packages qt) | |
35 | + | #:use-module (gnu packages serialization) | |
34 | 36 | #:use-module (gnu packages time) | |
35 | 37 | #:use-module (gnu packages tls) | |
36 | 38 | #:use-module (guix packages) | |
… | |||
708 | 710 | `(#:tests? #f; FIXME: Dictionary for language 'en_US' could not be found | |
709 | 711 | #:phases | |
710 | 712 | (modify-phases %standard-phases | |
711 | - | (add-before 'build 'setenv | |
713 | + | (add-before 'build 'setlib | |
712 | 714 | (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 | |
716 | 723 | `(("enchant" ,enchant) | |
717 | 724 | ("hunspell" ,hunspell))) | |
718 | 725 | (native-inputs | |
… | |||
730 | 737 | (method git-fetch) | |
731 | 738 | (uri (git-reference | |
732 | 739 | (url "https://framagit.org/tyreunom/offlate") | |
733 | - | (commit "ed8579552331ecdf5975c4bcbbf1f17651282b30"))) | |
740 | + | (commit "341bf4422116ec914f8229315e62463002d4d251"))) | |
734 | 741 | (sha256 | |
735 | 742 | (base32 | |
736 | - | "0hisx9x5a15yk3y18ra4mvca5iv7rcsnijcaly4z3aqc56bg1rm0")))) | |
737 | - | ;(source (origin | |
738 | - | ; (method url-fetch) | |
739 | - | ; (uri (pypi-uri "offlate" version)) | |
740 | - | ; (sha256 | |
741 | - | ; (base32 | |
742 | - | ; "1872ckgdip8nj9rnh167m0gsj5754qfg2hjxzsl1s06f5akwscgw")))) | |
743 | + | "1nbcnhggnvbvlbhqsa1db6nvhqbgjc7khsb55lc9xnwk5ar8bf0j")))) | |
743 | 744 | (build-system python-build-system) | |
744 | 745 | (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)) | |
753 | 747 | (propagated-inputs | |
754 | 748 | `(("python-android-stringslib" ,python-android-stringslib) | |
755 | 749 | ("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))) | |
757 | 756 | (home-page "https://framagit.org/tyreunom/offlate") | |
758 | 757 | (synopsis "") | |
759 | 758 | (description "") |