[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/12: gnu: Add python-autopage.
From: |
guix-commits |
Subject: |
09/12: gnu: Add python-autopage. |
Date: |
Tue, 21 Jun 2022 11:43:12 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 705c609048a221a76394c5a0b477b348e08db6ef
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Jun 21 16:18:09 2022 +0200
gnu: Add python-autopage.
* gnu/packages/python-xyz.scm (python-autopage): New variable.
---
gnu/packages/python-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 72d144fdcf..a07e130e8a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6668,6 +6668,58 @@ multivalue dictionary that retains the order of
insertions and deletions.")
run simple @code{argparse} parsers from function signatures.")
(license license:lgpl3+)))
+(define-public python-autopage
+ (package
+ (name "python-autopage")
+ (version "0.5.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "autopage" version))
+ (sha256
+ (base32
+ "169ixll1ncm2a2pcc86665ikjv2lrzs10p6c1w4yj55p3gk3xgh1"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Do a manual PEP 517 style build/install procedure until the
+ ;; python-build-system overhaul is merged.
+ (replace 'build
+ (lambda _
+ ;; ZIP does not support timestamps before 1980.
+ (let ((circa-1980 (* 10 366 24 60 60)))
+ (setenv "SOURCE_DATE_EPOCH" (number->string circa-1980))
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation"
"."))))
+ (add-before 'check 'disable-e2e-tests
+ (lambda _
+ ;; These tests rely on KeyboardInterrupts which do not
+ ;; work in the build container.
+ (delete-file "autopage/tests/test_end_to_end.py")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv"))))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl)))))))
+ (native-inputs
+ (list python-pypa-build
+ python-setuptools
+ python-wheel
+ ;; For tests.
+ python-fixtures
+ python-pytest
+ python-testtools))
+ (home-page "https://github.com/zaneb/autopage")
+ (synopsis "Automatic paging for console output")
+ (description
+ "Autopage is a Python library to automatically display terminal output
+from a program in a @dfn{pager} such as @command{less}.")
+ (license license:asl2.0)))
+
(define-public python-autopep8
(package
(name "python-autopep8")
- branch master updated (d13ffd1580 -> d485faf633), guix-commits, 2022/06/21
- 02/12: gnu: python-nose2: Update to 0.11.0., guix-commits, 2022/06/21
- 03/12: gnu: python-pika: Update to 1.2.1., guix-commits, 2022/06/21
- 01/12: gnu: python-faiss: Fix build on Python 3.9., guix-commits, 2022/06/21
- 05/12: gnu: python-django-netfields: Update to 1.3.0., guix-commits, 2022/06/21
- 06/12: gnu: python-breathe: Update to 4.34.0., guix-commits, 2022/06/21
- 07/12: gnu: python-ipython-sql: Update to 0.4.1., guix-commits, 2022/06/21
- 11/12: gnu: python-prettytable: Update to 3.3.0., guix-commits, 2022/06/21
- 09/12: gnu: Add python-autopage.,
guix-commits <=
- 08/12: gnu: python-ipython-sql: Remove prettytable version constraint., guix-commits, 2022/06/21
- 04/12: gnu: python-django-auth-ldap: Update to 4.1.0., guix-commits, 2022/06/21
- 10/12: gnu: python-cliff: Update to 3.10.1., guix-commits, 2022/06/21
- 12/12: gnu: zabbix-cli: Use new style., guix-commits, 2022/06/21