[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#48842] [PATCH v3 1/5] gnu: Add python-uc-micro-py.
From: |
Vinicius Monego |
Subject: |
[bug#48842] [PATCH v3 1/5] gnu: Add python-uc-micro-py. |
Date: |
Wed, 15 Sep 2021 16:41:26 +0000 |
* gnu/packages/python-xyz.scm (python-uc-micro-py): New variable.
---
Rebasing. Starting from this patch because the pytest plugins were pushed to
the repository.
gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e98eec19bc..b742050b06 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7257,6 +7257,41 @@ cluster directly from Python. You can directly map
Python functions onto the
cluster without needing to write any wrapper code yourself.")
(license license:gpl3+)))
+;; This package's only purpose is to support python-linkify-it-py. Both
+;; have to be updated at the same time by updating this one.
+(define python-uc-micro-py
+ (package
+ (name "python-uc-micro-py")
+ (version "1.0.1")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tsutsu3/uc.micro-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "17f55gi55rg47nm88fn3f8851ph03dgykdp011lxr3j6hk18lyfv"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "-m" "pytest")))))))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)))
+ (home-page "https://github.com/tsutsu3/uc.micro-py")
+ (synopsis "Micro subset of unicode data files for linkify-it-py projects")
+ (description "This is a Python port of @code{uc.micro}. This package's
+content is only for the @code{linkify-it-py} project needs.")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.30.2
- [bug#48842] [PATCH v3 1/5] gnu: Add python-uc-micro-py.,
Vinicius Monego <=