unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#58504] [PATCH] gnu: Add python-pint.
@ 2022-10-13 19:42 peter
  2022-12-06 11:27 ` Christopher Baines
  0 siblings, 1 reply; 2+ messages in thread
From: peter @ 2022-10-13 19:42 UTC (permalink / raw)
  To: 58504; +Cc: Peter Polidoro

From: Peter Polidoro <peter@polidoro.io>

* gnu/packages/python-xyz.scm (python-pint): New variable.
---
 gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7c647bd42f..900dfec4d1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -777,6 +777,35 @@ (define-public python-pymdown-extensions
 Markdown.  All extensions are found under the module namespace of pymdownx.")
     (license license:expat)))
 
+(define-public python-pint
+  (package
+    (name "python-pint")
+    (version "0.19.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "Pint" version))
+              (sha256
+               (base32
+                "1bsbiikm9i4saqc6mc3minkmrgnsgcg734agsvd7icqhyngrim71"))))
+    (build-system python-build-system)
+    (native-inputs (list python-pytest
+                         python-pytest-cov
+                         python-pytest-mpl
+                         python-pytest-subtests
+                         python-setuptools-scm
+                         python-sparse
+                         python-dask
+                         python-xarray
+                         python-distributed))
+    (home-page "https://github.com/hgrecco/pint")
+    (synopsis "Physical quantities module")
+    (description
+     "Pint is a Python package to define, operate and manipulate
+physical quantities: the product of a numerical value and a unit of
+measurement.  It allows arithmetic operations between them and conversions from
+and to different units.")
+    (license license:bsd-3)))
+
 (define-public python-plotille
   (package
     (name "python-plotille")
-- 
2.37.3





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [bug#58504] [PATCH] gnu: Add python-pint.
  2022-10-13 19:42 [bug#58504] [PATCH] gnu: Add python-pint peter
@ 2022-12-06 11:27 ` Christopher Baines
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Baines @ 2022-12-06 11:27 UTC (permalink / raw)
  To: peter; +Cc: 58504-done, 58504

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]


peter@polidoro.io writes:

> * gnu/packages/python-xyz.scm (python-pint): New variable.
> ---
>  gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++
>  1 file changed, 29 insertions(+)

Thanks for the patch! I've pushed this to master as
6219491c47f20aef6bc8523110936924e4d3d785.

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-06 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-13 19:42 [bug#58504] [PATCH] gnu: Add python-pint peter
2022-12-06 11:27 ` Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).