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 eJGgALEB9GBizAAAgWs5BA (envelope-from ) for ; Sun, 18 Jul 2021 12:25:53 +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 CMI+OLAB9GDgRwAAB5/wlQ (envelope-from ) for ; Sun, 18 Jul 2021 10:25:52 +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 1C0AD64F for ; Sun, 18 Jul 2021 12:25:52 +0200 (CEST) Received: from localhost ([::1]:58320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m53zb-0008PX-0N for larch@yhetil.org; Sun, 18 Jul 2021 06:25:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m53yq-0008P7-2t for guix-patches@gnu.org; Sun, 18 Jul 2021 06:25:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m53yo-0007Yc-IE for guix-patches@gnu.org; Sun, 18 Jul 2021 06:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m53yo-0003vT-A1 for guix-patches@gnu.org; Sun, 18 Jul 2021 06:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49575] [PATCH] Add date2name Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Jul 2021 10:25: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: 49575@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.162660386515027 (code B ref -1); Sun, 18 Jul 2021 10:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jul 2021 10:24:25 +0000 Received: from localhost ([127.0.0.1]:55233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m53yD-0003uI-3l for submit@debbugs.gnu.org; Sun, 18 Jul 2021 06:24:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:45824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m53y9-0003u9-FF for submit@debbugs.gnu.org; Sun, 18 Jul 2021 06:24:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m53y9-0008L6-8s for guix-patches@gnu.org; Sun, 18 Jul 2021 06:24:21 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:34447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m53y6-0006zw-FG for guix-patches@gnu.org; Sun, 18 Jul 2021 06:24:20 -0400 Date: Sun, 18 Jul 2021 10:24:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1626603848; bh=cjis3u8CcXeTuF7/LnC3I6baho0ab1Wu+fFp0UkL9yo=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=O9AfMj8DEdylnEweRrITJmSMcolz6z44n3dUjeTYj0tr7s0vn641Y1JRglb/9vSlt gUms8SiFrCFxbfM0HvrI2u9a9tFwald82x7QwktI+zZXVgzj4OdA41w1jDgLHpoZaw GTH8Z6g0ya+7Z405ZaaepHKFvHysmARFKHjn32jE= Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.22; envelope-from=phodina@protonmail.com; helo=mail-4322.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1626603952; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=cjis3u8CcXeTuF7/LnC3I6baho0ab1Wu+fFp0UkL9yo=; b=lycEmbxYdvd1FDdQ8YPDe6CGP99z0CSf104EspC8rIqaYUC5/7ckDqjv0IwI857+gQtKno ax2Md7WySQUe8JiPFQNzme4ecbN4J7pVTijVJ5ADIWGK0eCyz1/qHVJOyxxsocxrNLrfEf /B9QlwptCr50wiThPPEAX1J6mnYV0rOSAkHC+bX4Ov+z31vH0SSlbmu3qb404dkMc3qbBc ezR+8nz54qWtrYilW91qHX/sVEGRdOnlJZCIBOPV5HzqIPHWM9Re+8ttxMQKR/F9dNrxWo kLHUvgzY4J/I5fW8i2rQLHT0az+KPD27D12Zpvmj8Ah3ihhaNtiT4GAw5t2Sag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626603952; a=rsa-sha256; cv=none; b=JQ4sB4U3LRd26kwd1KfAu0TUZJ+OGS3ZNcenkyYFwOWlpRMrfObMRSCqH1wu/ZJDDXYiYu lt5KGLORX7SDJTFLIYAlhGpu5YuTBmjrCn3K+2uZI4oP46Ff8yaUDrqg//CT+YgalaOnuK wDBmayE3k56vqjAQQpjVkaUbWUO2DGQRgcQeJ4Ogt/J0jN+RKBkhIg+SCPF2gHmiA5k94L o+3LlaLSwg1d/iX/MYRJbXXcQCYB9PxlQLf9ZOj9yqOLXujQVJ/QVObyMEPPCArHJ0qtl/ 2pLG6A+gpY6ioYCN+KOKr3r8ZW+TJRmlfQB5m7vixGQHHmJkJD1NuqtaIbAwCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=O9AfMj8D; 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-Spam-Score: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=O9AfMj8D; 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: 1C0AD64F X-Spam-Score: -2.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: qn38J8VJc7fR Here's updated patch with following changes: - removed trailing whitespace - add comment for git commit - add comment for no tests - lines have less than 80 chars --- index 2a4f50ad46..220ac39e1d 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -905,6 +905,40 @@ for the @code{pytest} framework.") rounds that are calibrated to the chosen timer.") (license license:bsd-2))) + +(define-public python-date2name +(package + (name "date2name") + (version "6c8f37277e8ec82aa50f90b8921422be30c4e798") ; no tags + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/novoid/date2name") + (commit 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") "/bin")) + (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 "Per default, date2name gets the modification time of match= ing +files and directories and adds a datestamp in standard ISO 8601+ format +YYYY-MM-DD (http://datestamps.org/index.shtml) at the beginning of the fil= e- +or directoryname.") + (home-page "https://github.com/novoid/date2name") + (license license:gpl3))) + (define-public python-pytest-xvfb (package (name "python-pytest-xvfb") -- 2.31.1