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

Previous Next

Package: guix-patches;

Reported by: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Date: Sat, 3 Feb 2018 22:23:02 UTC

Severity: normal

Tags: patch

Done: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Marius Bakke <mbakke <at> fastmail.com>
To: Hartmut Goebel <h.goebel <at> crazy-compilers.com>, 30341 <at> debbugs.gnu.org
Subject: [bug#30341] [PATCH 1/4] gnu: Add python-pyte.
Date: Thu, 15 Feb 2018 12:58:40 +0100
[Message part 1 (text/plain, inline)]
Hartmut Goebel <h.goebel <at> crazy-compilers.com> 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
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 7 years and 99 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.