guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#30341] [PATCH 1/4] gnu: Add python-pyte.


From: Marius Bakke
Subject: [bug#30341] [PATCH 1/4] gnu: Add python-pyte.
Date: Thu, 15 Feb 2018 12:58:40 +0100
User-agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu)

Hartmut Goebel <address@hidden> writes:

> * gnu/packages/python.scm (python-pyte, python2-pyte): New variables.

Perhaps we can add this to "terminals.scm" to try and prevent python.scm
from growing out of control again.

[...]

> +(define-public python-pyte
> +  (package
> +    (name "python-pyte")
> +    (version "0.7.0")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (pypi-uri "pyte" version))
> +        (sha256
> +          (base32
> +           "1an54hvyjm8gncx8cgabz9mkpgjkdb0bkyjlkh7g7f94nr3wnfl7"))))
> +    (build-system python-build-system)
> +    (arguments
> +     '(#:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'remove-failing-test
> +           ;; TODO: Reenable when the `captured` files required by this test
> +           ;; are included in the archive.
> +           (lambda _
> +             (delete-file "tests/test_input_output.py"))))))

(delete-file ...) has an unspecified return value, so add a #t here.

> +    (propagated-inputs
> +     `(("python-wcwidth", python-wcwidth)))
> +    (native-inputs
> +     `(("python-pytest-runner" ,python-pytest-runner)
> +       ("python-pytest" ,python-pytest)))
> +    (home-page "https://pyte.readthedocs.io/";)
> +    (synopsis "Simple VTXXX-compatible terminal emulator")
> +    (description "@code{pyte} is an in-memory VTxxx-compatible terminal
> +emulator.  @var{VTxxx} stands for a series of video terminals, developed by
> +DEC between 1970 and 1995.  The first and probably most famous one was the
> +VT100 terminal, which is now a de-facto standard for all virtual terminal
> +emulators.
> +
> +pyte is as a fork of vt102, which was an incomplete pure Python 
> implementation
s/is as/is/ ?


> +of VT100 terminal.")
> +    (license license:lgpl3)))

Since the source files don't specify which version, this is LGPL3+.

Other than that LGTM.

> +
> +(define-public python2-pyte
> +  (package-with-python2 python-pyte))
> -- 
> 2.13.6

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]