From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sI9ZB4kPLmFgyAAAgWs5BA (envelope-from ) for ; Tue, 31 Aug 2021 13:16:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sHAOA4kPLmEYBAAAB5/wlQ (envelope-from ) for ; Tue, 31 Aug 2021 11:16:25 +0000 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 A174A11AB8 for ; Tue, 31 Aug 2021 13:16:24 +0200 (CEST) Received: from localhost ([::1]:54722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mL1kd-00076I-8v for larch@yhetil.org; Tue, 31 Aug 2021 07:16:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL1kI-000753-HM for guix-patches@gnu.org; Tue, 31 Aug 2021 07:16:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mL1kI-0006xj-9m for guix-patches@gnu.org; Tue, 31 Aug 2021 07:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mL1kI-0004s7-67 for guix-patches@gnu.org; Tue, 31 Aug 2021 07:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49575] [PATCH v3] gnu: Add python-date2name. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 31 Aug 2021 11:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49575 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 49575@debbugs.gnu.org Received: via spool by 49575-submit@debbugs.gnu.org id=B49575.163040853518692 (code B ref 49575); Tue, 31 Aug 2021 11:16:02 +0000 Received: (at 49575) by debbugs.gnu.org; 31 Aug 2021 11:15:35 +0000 Received: from localhost ([127.0.0.1]:33155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL1jn-0004rM-Hd for submit@debbugs.gnu.org; Tue, 31 Aug 2021 07:15:35 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:19039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL1jh-0004r4-Am for 49575@debbugs.gnu.org; Tue, 31 Aug 2021 07:15:29 -0400 Date: Tue, 31 Aug 2021 11:15:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1630408518; bh=p1cxJ+qybx/YmyBs8aNRnKQKaq6rIC1Kt81PwK4Ri4I=; h=Date:To:From:Cc:Reply-To:Subject:From; b=L0kYaPaq5Hbf6Ev8PuiJMvPwJ0zXiSwu/QE9fKIff+d1Mm5my/Iic3NgeeQGEd4G1 3s1uhcEPTx5bDpU71HppiUA8R7wnO1/6IYWHsxMsXKakKELsmJi00MFUqBGqhZkKVM xOsoCd8IT8rbtagRDyMqSfLIUEH54U55P00kNgB0= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches From: phodina via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630408584; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=p1cxJ+qybx/YmyBs8aNRnKQKaq6rIC1Kt81PwK4Ri4I=; b=k4ynYeaMA0xVxccVu10QzSNU5CKoI0c/e4913O2JjEeTkw5meMrz7CVbvUtGIZ+Y49WrR4 hPrMThSsRP9/g03V3c2QELXit498X/CG9LGFR92Rj5sPtcFUQGymHb26r00oSuGQreu/eA Iv0JQpMMv32leSsM2rr03CORChGiMuc/mjoinEWe64bPOxD8/QN2ecu90xrc9SrjofkBBo 0Hmq2P0toWzzAGTp38ueaV15SjoUuSNR3LpYzrkcM9VFGOkUmC8vsMRxD69H+s3wpOyGxt K3QYnzuECN5LzFQrl24RVB9dlvJiB7+/ApxhrfiBtnQCZixtRsW5ZQDo9ijsLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630408584; a=rsa-sha256; cv=none; b=Xx2hgtJS9PSrBLW4rwHbbQ/K+N3q4kg0s1BGXMUAkrtt9vMd71MUa8sxdkEeuUdNs+n0pi 6lBSagUetdb1wiei8MLKCzRq8eAu4rfV2WN6ZZ3mO02sXX3bZhTDBbCOHQoxx4kYEwxnOE RRkuSVnTiYzpYFGYepqLrAe6qk3TVm+VqU574XyfXu/92yrivMkLZbb99RWKVHJVXnJBJn ZMEZKcnfhsHT23nKOrJgAcpw/+dh79pvGsn7yl5AWOVbgZE/wBDNPFVAduR/Miknkc+CFg zFwzRUuxpFql9B9WE/DA81CW5nJEwBEWCIaq206Y4oaelVxNqzByNX3Uzj+Nmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=L0kYaPaq; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=L0kYaPaq; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: A174A11AB8 X-Spam-Score: -1.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1ZViL7EbfMbH Hi Ludo, thanks for the suggestions and excellent documentation! Here's the updated = patch. ------------------------------------- * gnu/packages/python-check.scm (date2name): New variable. diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 2a4f50ad46..afd5cb5cb9 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -13,6 +13,7 @@ ;;; Copyright =C2=A9 2021 Brendan Tildesley ;;; Copyright =C2=A9 2021 Guillaume Le Vaillant ;;; Copyright =C2=A9 2021 Bonface Munyoki Kilyungi +;;; Copyright =C2=A9 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -905,6 +906,42 @@ for the @code{pytest} framework.") rounds that are calibrated to the chosen timer.") (license license:bsd-2))) +(define-public python-date2name + (let ((commit "6c8f37277e8ec82aa50f90b8921422be30c4e798") + (revision "1")) + (package + (name "python-date2name") + (version (git-version "" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/novoid/date2name") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1vq96b7n16d932nyfhnzwdwxff0zrqanidmwr4cxj2p67ad9y3w7")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((bindir (string-append (assoc-ref outputs "out") "/b= in")) + (binary (string-append bindir "/date2name"))) + (mkdir-p bindir) + (copy-file "date2name/__init__.py" binary) + (chmod binary #o555))))))) + (synopsis "Handling time-stamps and date-stamps in file names") + (description "By default, date2name gets the modification time of ma= tching +files and directories and adds a datestamp in standard ISO 8601+ format +YYYY-MM-DD at the beginning of the file or directory name.") + (home-page "https://github.com/novoid/date2name") + (license license:gpl3+)))) + (define-public python-pytest-xvfb (package (name "python-pytest-xvfb") -- 2.32.0