mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: Add python2-zinnia.
* gnu/packages/ocr.scm (python2-zinnia): New variable.
This commit is contained in:
parent
9a94ccec4c
commit
16dd1fd044
1 changed files with 20 additions and 0 deletions
|
@ -25,7 +25,9 @@ (define-module (gnu packages ocr)
|
|||
#:use-module (guix download)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix build-system python)
|
||||
#:use-module (gnu packages compression)
|
||||
#:use-module (gnu packages python)
|
||||
#:use-module (gnu packages image))
|
||||
|
||||
(define-public ocrad
|
||||
|
@ -131,3 +133,21 @@ (define-public zinnia
|
|||
"file://zinnia/aclocal.m4")
|
||||
license:x11 ; 'install-sh'
|
||||
license:public-domain))))) ; 'install-sh'
|
||||
|
||||
;;; python 2 bindings, license under the same terms as zinnia
|
||||
(define-public python2-zinnia
|
||||
(package
|
||||
(inherit zinnia)
|
||||
(name "python2-zinnia")
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
`(#:python ,python-2 ; CObject API is used, it was removed in Python 3.2
|
||||
#:tests? #f ; avoid circular dependency on tegaki-zinnia-japanese
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'chdir
|
||||
(lambda _
|
||||
(chdir "zinnia/python")
|
||||
#t)))))
|
||||
(inputs
|
||||
`(("zinnia" ,zinnia)))))
|
||||
|
|
Loading…
Reference in a new issue