[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50628] [PATCH 004/154] gnu: Add python-tablib.
From: |
Hartmut Goebel |
Subject: |
[bug#50628] [PATCH 004/154] gnu: Add python-tablib. |
Date: |
Fri, 17 Sep 2021 00:52:23 +0200 |
* gnu/packages/python-xyz.scm (python-tablib): New variable.
---
gnu/packages/python-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 23a76d7727..693de6db7d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26645,3 +26645,49 @@ Braintree Gateway. Braintree is a US-based payments
service provider.")
HTML/XML from a Python program in an intuitive, lightweight, customizable and
pythonic way.")
(license license:expat)))
+
+(define-public python-tablib
+ (package
+ (name "python-tablib")
+ (version "3.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "tablib" version))
+ (sha256
+ (base32 "03f1z6jq6rf67gwhbm9ma4rydm8h447a5nh5lcs5l8jg8l4aqg7q"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (setenv "PYTHONPATH"
+ (string-append (getcwd) "/build/lib:"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest")))))))
+ (native-inputs
+ `(("python-pandas" ,python-pandas) ;; required for test-suite
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-setuptools-scm" ,python-setuptools-scm)))
+ (propagated-inputs
+ `(("python-markuppy" ,python-markuppy)
+ ("python-odfpy" ,python-odfpy)
+ ("python-openpyxl" ,python-openpyxl)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-tabulate" ,python-tabulate)
+ ("python-xlrd" ,python-xlrd)
+ ("python-xlwt" ,python-xlwt)))
+ (home-page "https://tablib.readthedocs.io")
+ (synopsis "Format agnostic tabular data library")
+ (description "is a format-agnostic tabular dataset library,
+written in Python. Supported output formats are Excel (Sets + Books),
+JSON (Sets + Books), YAML (Sets + Books), HTML (Sets), Jira (Sets),
+TSV (Sets), ODS (Sets), CSV (Sets), and DBF (Sets).
+
+@code{tablib} also supports Pandas DataFrames (Sets). Anyhow, since pandas is
+quite huge, this Guix package doesn't depend on pandas. In case, just also
+install @code{python-pandas}.")
+ (license license:expat)))
--
2.30.2
- [bug#50628] [PATCH 000/154] Add 146 Tryton modules and some dependencies, Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 001/154] gnu: Add python-braintree., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 002/154] gnu: Add python-markuppy., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 003/154] gnu: Add python-xlwt., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 006/154] gnu: Add python-febelfin-coda., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 005/154] gnu: Add python-csb43., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 004/154] gnu: Add python-tablib.,
Hartmut Goebel <=
- [bug#50628] [PATCH 007/154] gnu: Add python-ofxparse., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 008/154] gnu: Add python-stripe., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 011/154] gnu: Add trytond-account-cash-rounding., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 013/154] gnu: Add trytond-account-de-skr03., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 010/154] gnu: Add trytond-account-be., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 012/154] gnu: Add trytond-account-credit-limit., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 015/154] gnu: Add trytond-account-dunning., Hartmut Goebel, 2021/09/16
- [bug#50628] [PATCH 017/154] gnu: Add trytond-account-dunning-fee., Hartmut Goebel, 2021/09/16