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 tS/2INRh8GAPXgAAgWs5BA (envelope-from ) for ; Thu, 15 Jul 2021 18:27:00 +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 WMNCGtRh8GCfTgAAB5/wlQ (envelope-from ) for ; Thu, 15 Jul 2021 16:27:00 +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 A67E81095F for ; Thu, 15 Jul 2021 18:26:59 +0200 (CEST) Received: from localhost ([::1]:55594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m44CQ-0007Du-Bo for larch@yhetil.org; Thu, 15 Jul 2021 12:26:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m43w3-0003R2-47 for guix-patches@gnu.org; Thu, 15 Jul 2021 12:10:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37991) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m43w2-00066n-Sh for guix-patches@gnu.org; Thu, 15 Jul 2021 12:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m43w2-0001y4-H0 for guix-patches@gnu.org; Thu, 15 Jul 2021 12:10: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: Thu, 15 Jul 2021 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 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.16263653627498 (code B ref -1); Thu, 15 Jul 2021 16:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jul 2021 16:09:22 +0000 Received: from localhost ([127.0.0.1]:49534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m43vD-0001wf-UD for submit@debbugs.gnu.org; Thu, 15 Jul 2021 12:09:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:54376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m43re-0001r5-M9 for submit@debbugs.gnu.org; Thu, 15 Jul 2021 12:05:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m43rd-0001s7-RF for guix-patches@gnu.org; Thu, 15 Jul 2021 12:05:30 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]:33862) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m43ra-0002uC-7C for guix-patches@gnu.org; Thu, 15 Jul 2021 12:05:29 -0400 Date: Thu, 15 Jul 2021 16:05:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1626365116; bh=riUYZPyhMNib5bpK5V/rw3+cZCijGqUngFOjm0ze464=; h=Date:To:From:Reply-To:Subject:From; b=O/nGXUK0B6U2awOtLG4OK+ww1vAmvWSD9UvNADQpGlKzhnu5KbjBObp6lAvEVRVMr YBnjAB3shmqbTW/uy8KtpJWQmZAQXp7skDycwstj7JnIjJpknWSrPTpmXKDVeoZ5BE vHoUmXL+nK2BmEbj1BKpo1H2gVQFzneMLvEY2r8w= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.133; envelope-from=phodina@protonmail.com; helo=mail-40133.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-Mailman-Approved-At: Thu, 15 Jul 2021 12:09:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 15 Jul 2021 12:26:31 -0400 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=1626366420; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=riUYZPyhMNib5bpK5V/rw3+cZCijGqUngFOjm0ze464=; b=JSb3zb4W148jLDPtIrhp4fhhzwtEOr6aykhOl4yW0dnb/lRsuKiMcWPJoK0mpxmcacbAER yOGsetzvYIVfmSm9uIEDSe4mnJlKZZDhf/QXkrPkml6bgzHsvMj6zD1oRRlvMzMLVOfP0I D6HGYXayCxDLgKHfGLHeCaYmw0uLlt1dRirouN5OHeHkrDdvn8agzCDgL1LLN67YZFjO2J oN3W6P/4zyr/LqTc7biDb/X8vgvZuylhOpAGlVT5UAvKZVQfPJyl3C9rDJkxsNAM2vL0MP oYypq8CjVo0pUi26WKI80zexVTLOFKSTHKXNDrHJ3FqAkPwkjgcnPgMoYpwrdA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626366420; a=rsa-sha256; cv=none; b=YEZEy3aijuO0Ph5NRaUfjHJGhiIlFRCXznBWHQ+eY66hfQCpQpsWT+EcQczmkxnlUPFJsh Hm8eQCD7wQbtoL7S9Ul/ZElVdZ6xTLDk7hAhJRtO5ouEYVgSCExpWYNJO9168bkv2JYmCV jJgHrg73bTF6+w2H/nZFtvrDM1UOf98jj98VvBkMZRfTyqRtturA3wGTxjayoU4yjfdgAS WTRFLKrsxzDahr/Rs3C9+rk5G82vDP8kKQecZgGdBKc1sAAYr/MEgOeNWbBU5WZbilzAsR 5UGMEfUDZH7040ZPJ9GJDRQ/Pw6B3yJ99b0DL8YiA+tfG7L1mcpgHq57iP5ztw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b="O/nGXUK0"; 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.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b="O/nGXUK0"; 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: A67E81095F X-Spam-Score: -2.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: wmhixvMXJvqg --- index d8c3fbec07..ac9a5f940d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -105,6 +105,7 @@ ;;; Copyright =C2=A9 2021 Danial Behzadi ;;; Copyright =C2=A9 2021 Maxime Devos ;;; Copyright =C2=A9 2021 Hugo Lecomte +;;; Copyright =C2=A9 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -904,6 +905,37 @@ iotop, uptime, pidof, tty, taskset, pmap.") (properties `((python2-variant . ,(delay python2-psutil)))) (license license:bsd-3))) +(define-public python-date2name +(package + (name "date2name") + (version "6c8f37277e8ec82aa50f90b8921422be30c4e798") + (source (origin + (method git-fetch) + (uri +=09 (git-reference +=09=09(url "https://github.com/novoid/date2name") +=09=09(commit version))) + (sha256 + (base32 + "1vq96b7n16d932nyfhnzwdwxff0zrqanidmwr4cxj2p67ad9y3w7")))) + (build-system python-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases +=09(delete 'build) +=09(replace 'install +=09 (lambda* (#:key outputs #:allow-other-keys) +=09 (let* ((bindir (string-append (assoc-ref outputs "out") "/bin")) +=09=09 (binary (string-append bindir "/date2name"))) +=09 (mkdir-p bindir) +=09 (copy-file "date2name/__init__.py" binary) +=09 (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 python2-psutil (let ((base (package-with-python2 (strip-python2-variant python-psutil))= )) (package/inherit base -- 2.31.1