From patchwork Mon Apr 25 03:56:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 38850 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 7F1B827BBEA; Mon, 25 Apr 2022 05:21:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 16B1027BBE9 for ; Mon, 25 Apr 2022 05:21:21 +0100 (BST) Received: from localhost ([::1]:43246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niqDw-0000KW-9Q for patchwork@mira.cbaines.net; Mon, 25 Apr 2022 00:21:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nipvL-0007vg-IL for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nipvI-0001cl-UW for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nipvI-0008AF-Sd for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55104] [PATCH 058/232] gnu: Add python-tempora. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Apr 2022 04:02:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55104 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55104@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 55104-submit@debbugs.gnu.org id=B55104.165085930231158 (code B ref 55104); Mon, 25 Apr 2022 04:02:04 +0000 Received: (at 55104) by debbugs.gnu.org; 25 Apr 2022 04:01:42 +0000 Received: from localhost ([127.0.0.1]:60820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nipuv-00086O-P2 for submit@debbugs.gnu.org; Mon, 25 Apr 2022 00:01:42 -0400 Received: from mail-qv1-f54.google.com ([209.85.219.54]:33756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niptl-0007ph-Pi for 55104@debbugs.gnu.org; Mon, 25 Apr 2022 00:00:30 -0400 Received: by mail-qv1-f54.google.com with SMTP id kc12so5771167qvb.0 for <55104@debbugs.gnu.org>; Sun, 24 Apr 2022 21:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hEF5V9rGJZhGEuZ066mFdGscIUT1JiUR/FEDYsolUWQ=; b=ClpNiXtW+jgqYfzDZFy/LqCen+7ut0a1IXXROJlgUEIt5tPnFWQJ3brGcJU29xKyRY g763yy8NT1HJ5JPY2kpDNV84jxTirpIbL4zVVk408Np1Y6qD51PK/48v6CIMjYjhaK0j lBGvLHGIIjIJk3C2BibrbyoFFG3/gDyfpBjbeTtBwUFLfrFHKUJE8VJ7aoqRbIE5a62O E/D70GFT+3U8ONyI7PmhRU6OEIOe2haBntjBh5lWT83MPZ26tJsFyHnt9xIcOHPQz7ZO Vwj7xgpoPo5PH5kvBUz/2HxjNXFozchcVu2Q9JTxCOPfPd7+MLZ6lecJ+bgsvR9cj1Iz +6bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hEF5V9rGJZhGEuZ066mFdGscIUT1JiUR/FEDYsolUWQ=; b=UZtLoCIL9pE6dN4jGmMxFnrVJHrQap95JqvZtQidEZstH3Rsfkl24WS80JvgTPKljJ JxQOMtvXEv4+S+gCsW0XEs7UZnAKQ6lm/s84jvtLpPxdSQ/Xz3Vvu2+Q98RJjKmxjXyW PyzlnTnuVOmkVeNr77OZBOu80qlcgQgs15couOIvNtiUerd0hM46AT+jHvw4IrabxGfK jSM4v0F5J7jSncVNAyi/JLunwcweiFL8ylKzGRHZBmalcNNBZ6PwVVV2tcDksGpdHFUR heUzuGg5ZEDGq9Xv/cxDSRYHAyBKXzoM0w3S0uOwV9U7Nyb/z3Pca9R+h1pazfkFTHeK XpHg== X-Gm-Message-State: AOAM532ItmwPI9vM/B6Q6qGwSKUyHUG5z9JZzqcQjr2aPJwy0lucQ+Kk TubRql8jn3SNSOIdFqT+56pIB+po08Pu5Q== X-Google-Smtp-Source: ABdhPJzYKG/DP55xRwbP+0l39pCDbmvFvv0x3MboU/ZCzmDroP5a0ATid278kcT45dmL3gbUWi1EQg== X-Received: by 2002:a05:6214:ca2:b0:452:f242:f6e3 with SMTP id s2-20020a0562140ca200b00452f242f6e3mr9272512qvs.112.1650859224031; Sun, 24 Apr 2022 21:00:24 -0700 (PDT) Received: from localhost.localdomain (dsl-150-232.b2b2c.ca. [66.158.150.232]) by smtp.gmail.com with ESMTPSA id w82-20020a376255000000b0069ee3f0ae63sm4478142qkb.45.2022.04.24.21.00.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 21:00:23 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 24 Apr 2022 23:56:24 -0400 Message-Id: <20220425035918.25683-58-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220425035918.25683-1-maxim.cournoyer@gmail.com> References: <20220425035918.25683-1-maxim.cournoyer@gmail.com> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-tempora): New variable. --- gnu/packages/python-xyz.scm | 54 +++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0f6731efe7..179f5a6c1e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -21445,6 +21445,60 @@ (define-public python-tempdir (define-public python2-tempdir (package-with-python2 python-tempdir)) +(define-public python-tempora + (package + (name "python-tempora") + (version "5.0.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "tempora" version)) + (sha256 + (base32 "09wirlk5vmxlhl9rnxp7g5qz2nsd6b0gnzk5fczbz0s8lsbz386b")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + ;; XXX: PEP 517 manual build copied from python-isort. + (replace 'build + (lambda _ + (setenv "SOURCE_DATE_EPOCH" "315532800") + (invoke "python" "-m" "build" "--wheel" "--no-isolation" "."))) + (replace 'install + (lambda _ + (let ((whl (car (find-files "dist" "\\.whl$")))) + (invoke "pip" "--no-cache-dir" "--no-input" + "install" "--no-deps" "--prefix" #$output whl)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; Do not test the myproject.toml build as it tries to pull + ;; dependencies from the Internet. + (invoke "pytest" "-k" "not project"))))))) + (native-inputs + (list python-pypa-build + python-freezegun + python-pytest + python-pytest-black + python-pytest-checkdocs + python-pytest-cov + python-pytest-enabler + python-pytest-flake8 + python-pytest-freezegun + python-pytest-mypy + python-setuptools-scm + python-types-freezegun + python-types-pytz)) + (propagated-inputs (list python-jaraco-functools python-pytz)) + (home-page "https://github.com/jaraco/tempora") + (synopsis "Python date and time objects and routines") + (description "The @code{tempora} Python library contains miscellaneous +date and time related utilities and constants, routines for measuring, +profiling, and getting datetime-aware @acronym{UTC, Coordinated Universal +Time} values as well as an event scheduler.") + (license license:expat))) + (define-public python-activepapers (package (name "python-activepapers")