From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oO8DHMQhZmKSewEAbAwnHQ (envelope-from ) for ; Mon, 25 Apr 2022 06:21:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EIQKG8QhZmLKYQAAG6o9tA (envelope-from ) for ; Mon, 25 Apr 2022 06:21:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 108E32A08A for ; Mon, 25 Apr 2022 06:21:24 +0200 (CEST) Received: from localhost ([::1]:43246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niqDx-0000KW-Qa for larch@yhetil.org; Mon, 25 Apr 2022 00:21:21 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650860484; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hEF5V9rGJZhGEuZ066mFdGscIUT1JiUR/FEDYsolUWQ=; b=e7HBMFWa6tK692B5Vqpf7CAR6LSz99Z2lMMcsE9I3bOtjpfGrQb9Cc29gBYyfmMsyKF3iH 8UbWOmbbBMKLGXp/O2AdZ9bfam2klnN+UrVQLqWXAAImnujKi++Anm/HcABQFAH3a5MesG rNgDIIHeSHcAs3ZGPwD6fwJyiJUUfD43H+vpa2g90fmfGTMjAv68oiALw2p67AzYBvUT7I dr5IyDntR9wldcdKW31W1PO8SKHeKb08lDS4yzPHqsJW2tlUX0G4vkGUOeeP6PThUMJ3ye 9vdsRJr/dXj3MTGWFahFOgOsj/MADWgY4Ph07l1sqJjLbwKm/GU/PFE23NMDgQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650860484; a=rsa-sha256; cv=none; b=Q7zUCa2D5J70aO5CwDxLvc/fqN7oI1oPP3DC9XTqb+UrVT9XmedAgWrbY3mHA8Um/LBRNi xFnR/htlTwKMpiQaKkU1BS25nepqDbhBJ6F9wCwtfoDF6FhhzICwonFC19GCbtfm8eewu4 DlT1Kt596hNZk7wK8Q3DNJrujJYR6piFy4cqsXJzswcDDLYmJXa5vz5G1/gR9mimy1latl FbTcXsDc+5/OieR8Z83ClikJChv29dLy8KY83iQw8XEFiBIQPEzHMhIztAURiTMYeM/35t 4f+UWKjKuzhVmk5W+KDP7DsS/uXTYHwGQbZIkVDdvAMkfFUf8QoO9qkoNthjrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ClpNiXtW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ClpNiXtW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 108E32A08A X-Spam-Score: 7.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: rX3oL6DTYYL7 * 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") -- 2.34.0