[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/12: gnu: Add python-pyenchant.
From: |
guix-commits |
Subject: |
01/12: gnu: Add python-pyenchant. |
Date: |
Sun, 26 Jan 2020 12:50:35 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit 43b4f936b907c340efc3d5a485939a4e01ef4fce
Author: Julien Lepiller <address@hidden>
AuthorDate: Sun Jan 12 23:24:47 2020 +0100
gnu: Add python-pyenchant.
* gnu/packages/enchant.scm (python-pyenchant): New variable.
---
gnu/packages/enchant.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/enchant.scm b/gnu/packages/enchant.scm
index bcf2507..2582599 100644
--- a/gnu/packages/enchant.scm
+++ b/gnu/packages/enchant.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2014 Marek Benc <address@hidden>
;;; Copyright © 2018 Marius Bakke <address@hidden>
;;; Copyright © 2019 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2020 Julien Lepiller <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -23,10 +24,12 @@
#:use-module (gnu packages aspell)
#:use-module (gnu packages check)
#:use-module (gnu packages glib)
+ #:use-module (gnu packages libreoffice)
#:use-module (gnu packages pkg-config)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system python)
#:use-module (guix licenses)
#:use-module (srfi srfi-1))
@@ -86,3 +89,35 @@ working\".")
(sha256
(base32
"0zq9yw1xzk8k9s6x83n1f9srzcwdavzazn3haln4nhp9wxxrxb1g"))))))
+
+(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\""))))))))
+ (inputs
+ `(("enchant" ,enchant)))
+ (home-page "https://github.com/pyenchant/pyenchant")
+ (synopsis "Spellchecking library for Python")
+ (description "PyEnchant is a spellchecking library for Python, based on the
+Enchant library. PyEnchant combines all the functionality of the underlying
+Enchant library with the flexibility of Python. It also provides some
+higher-level functionality than is available in the C API.")
+ (license lgpl2.1+)))
- branch master updated (9a5edd0 -> 2cbede5), guix-commits, 2020/01/26
- 01/12: gnu: Add python-pyenchant.,
guix-commits <=
- 02/12: gnu: Add python-check-manifest., guix-commits, 2020/01/26
- 03/12: gnu: Add python-codacy-coverage., guix-commits, 2020/01/26
- 05/12: gnu: add python-httmock., guix-commits, 2020/01/26
- 04/12: gnu: Add python-translation-finder., guix-commits, 2020/01/26
- 08/12: gnu: Add python-pathtools., guix-commits, 2020/01/26
- 09/12: gnu: Add python-iocapture., guix-commits, 2020/01/26
- 10/12: gnu: Add python-argh., guix-commits, 2020/01/26
- 11/12: gnu: Add python-watchdog., guix-commits, 2020/01/26
- 12/12: gnu: Add offlate., guix-commits, 2020/01/26
- 06/12: gnu: Add python-gitlab., guix-commits, 2020/01/26