From patchwork Thu Aug 26 15:15:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 32323 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D7F9427BBE3; Thu, 26 Aug 2021 16:37:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8E0E127BBE1 for ; Thu, 26 Aug 2021 16:37:09 +0100 (BST) Received: from localhost ([::1]:40580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJHRE-00050v-K2 for patchwork@mira.cbaines.net; Thu, 26 Aug 2021 11:37:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJHR8-00050Y-6l for guix-patches@gnu.org; Thu, 26 Aug 2021 11:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJHR7-0008BN-Vi for guix-patches@gnu.org; Thu, 26 Aug 2021 11:37:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mJHR7-00026Z-TX for guix-patches@gnu.org; Thu, 26 Aug 2021 11:37:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50213] [PATCH 15/19] gnu: Add python-dotenv. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Aug 2021 15:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50213 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50213@debbugs.gnu.org Cc: jgart Received: via spool by 50213-submit@debbugs.gnu.org id=B50213.16299921988052 (code B ref 50213); Thu, 26 Aug 2021 15:37:01 +0000 Received: (at 50213) by debbugs.gnu.org; 26 Aug 2021 15:36:38 +0000 Received: from localhost ([127.0.0.1]:50160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJHQg-00025i-M9 for submit@debbugs.gnu.org; Thu, 26 Aug 2021 11:36:38 -0400 Received: from mx1.dismail.de ([78.46.223.134]:5316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJH76-0001TM-Hn for 50213@debbugs.gnu.org; Thu, 26 Aug 2021 11:16:21 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 1fccfb9d for <50213@debbugs.gnu.org>; Thu, 26 Aug 2021 17:16:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=20190914; bh=ZEdLY6SKSCZe4Pc74yBuW BiP1B0bdevrM2LPVE3R8IE=; b=mouRGZT+yEvZTAtvapUUi45dcfXP9FqSZHJMx lgVL03kLi27tY92hwt32lVCpLfO4aD2gStGawOX0g4A9xkVliwM9uUZCNOogTmDa ZUvBuczH+fwBoTf6vb7CX13ndxK6vFDC1jyLY0PxqOioY23wnOYgr1mL0WX767Vn wcGkCQSeJ1QPzBm0+eOzDYYA5d+6TkXaHX45inDaFDN913767/9ManF+tHWBILKW VY5t7d6gbTc4s6067Ek989++Sdn0l8cDvuTEqijYHSnddlSkLJQy89f8qlGA+CAV dfOUbazdyFhz7DITLkYiTgDWSsenUjI5Ju/TOSnxvHb/9t+CA== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id efe0155a for <50213@debbugs.gnu.org>; Thu, 26 Aug 2021 17:16:16 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id e471f327 for <50213@debbugs.gnu.org>; Thu, 26 Aug 2021 17:16:16 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id c608e598 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 26 Aug 2021 17:16:15 +0200 (CEST) Date: Thu, 26 Aug 2021 11:15:49 -0400 Message-Id: <20210826151553.10127-15-jgart@dismail.de> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210826151553.10127-1-jgart@dismail.de> References: <20210826151553.10127-1-jgart@dismail.de> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-dotenv): New variable. --- gnu/packages/python-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f379c54164..a63ee98dab 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1931,6 +1931,49 @@ a library.") (description "DiskCache is a disk and file backed persistent cache.") (license license:asl2.0))) +(define-public python-dotenv + (package + (name "python-dotenv") + (version "0.19.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-dotenv" version)) + (sha256 + (base32 + "0wk1kfzbpqk9swvmpa9z3q170ffqql2id4b2dxrkrq58r4mbq8gm")))) + (build-system python-build-system) + (native-inputs + `(("python-sh" ,python-sh) + ("python-ipython" ,python-ipython) + ("python-pytest" ,python-pytest) + ("python-mock" ,python-mock))) + (propagated-inputs + `(("python-click" ,python-click))) + (home-page + "https://github.com/theskumar/python-dotenv") + (synopsis + "Read key-value pairs from a .env file and set them as environment variables") + (description +"Python-dotenv reads key-value pairs from a .env file and can set them as environment +variables. It facilitates the development of applications following the 12 factors for +building software-as-a-service apps as detailed by Adam Wiggins: +@enumerate +@item One codebase tracked in revision control, many deploys +@item Explicitly declare and isolate dependencies +@item Store config in the environment +@item Treat backing services as attached resources +@item Strictly separate build and run stages +@item Execute the app as one or more stateless processes +@item Export services via port binding +@item Scale out via the process model +@item Maximize robustness with fast startup and graceful shutdown +@item Keep development, staging, and production as similar as possible +@item Treat logs as event streams +@item Run admin/management tasks as one-off processes +@end enumerate") + (license license:bsd-4))) + (define-public python-bitstruct (package (name "python-bitstruct")