guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

192/203: gnu: Add python-dotenv.


From: guix-commits
Subject: 192/203: gnu: Add python-dotenv.
Date: Wed, 3 Nov 2021 21:10:43 -0400 (EDT)

apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.

commit b0af9f9f272b55c499ce516229e3f1ece2f3018e
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Oct 31 21:25:54 2021 -0400

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3bca73b..3d9ab89 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12243,6 +12243,37 @@ programmatically with command-line parsers like 
@code{getopt} and
 (define-public python2-docopt
   (package-with-python2 python-docopt))
 
+(define-public python-dotenv
+  (package
+    (name "python-dotenv")
+    (version "0.19.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "python-dotenv" version))
+       (sha256
+        (base32 "1f64ni36j5khzhfn01z7f53kg5byrgflm4g6hck6d56lr1f1iy0l"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-ipython" ,python-ipython)
+       ("python-mock" ,python-mock)
+       ("python-pytest" ,python-pytest)
+       ("python-sh" ,python-sh)))
+    (propagated-inputs
+     `(("python-click" ,python-click)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "pytest")))))))
+    (home-page "https://github.com/theskumar/python-dotenv";)
+    (synopsis "Environment variables configuration tool")
+    (description "Python-dotenv reads key-value pairs from a .env file and can
+set them as environment variables.")
+    (license license:bsd-3)))
+
 (define-public python-pythondialog
   (package
     (name "python-pythondialog")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]