From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uPUYNPO1/WBNVQAAgWs5BA (envelope-from ) for ; Sun, 25 Jul 2021 21:05:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mOSUL/O1/WAbXgAAbx9fmQ (envelope-from ) for ; Sun, 25 Jul 2021 19:05:23 +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 82FF6A37F for ; Sun, 25 Jul 2021 21:05:22 +0200 (CEST) Received: from localhost ([::1]:51040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7jRB-0003xm-JF for larch@yhetil.org; Sun, 25 Jul 2021 15:05:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7jQs-0003wx-Tm for guix-patches@gnu.org; Sun, 25 Jul 2021 15:05:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7jQs-0001IY-MR for guix-patches@gnu.org; Sun, 25 Jul 2021 15:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7jQs-0004Ih-IT for guix-patches@gnu.org; Sun, 25 Jul 2021 15:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49735] [PATCH v2] gnu: Add python-date2name. Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Jul 2021 19:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49735 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49735@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.162723987916494 (code B ref -1); Sun, 25 Jul 2021 19:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jul 2021 19:04:39 +0000 Received: from localhost ([127.0.0.1]:49395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7jQR-0004Hs-NK for submit@debbugs.gnu.org; Sun, 25 Jul 2021 15:04:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:38146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7jQP-0004Hk-J6 for submit@debbugs.gnu.org; Sun, 25 Jul 2021 15:04:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7jQO-0003eS-VQ for guix-patches@gnu.org; Sun, 25 Jul 2021 15:04:33 -0400 Received: from mail-4323.protonmail.ch ([185.70.43.23]:63900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7jQM-0000tY-Ew for guix-patches@gnu.org; Sun, 25 Jul 2021 15:04:32 -0400 Date: Sun, 25 Jul 2021 19:04:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1627239864; bh=a2sxBgZpu4ZYbc1mNc866Za/uvOLkAF9Ebb5wBXKq9s=; h=Date:To:From:Reply-To:Subject:From; b=kliaLf6pt/8TL0DEoJKK01Ftb2uVqVnxTVmee83qWdWO1lbortoX7L7b+9qFkvFx1 W7u3DZyK3ryJ1cQ+2xzx40b0nZx823D41LHxodDyjLriTNQ5tYFsR3C33vsTKTCsMe KNA+i+Y0qGjBJbnpGQ/nO/0dJBSevluvv+3ro3XM= 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.43.23; envelope-from=phodina@protonmail.com; helo=mail-4323.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.01, RCVD_IN_MSPIKE_WL=-0.01, 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=1627239923; 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=a2sxBgZpu4ZYbc1mNc866Za/uvOLkAF9Ebb5wBXKq9s=; b=RQd0S0pE1owXWOhFMtRxSDT6QWyjomfa+/XeIovroytnzDQF3F74iv/Kc9WcEsMe6gYICY FycpNZmhtYegt19MzkY9qgIOmCzcctW/FvAVfLYgHUIc8QAFvZNE6SseJB9V/8NtHKBgyH rm6zitI1aGfrohUY8easijTzz5N/xNn31BwKX1r/nG2nLd6Vj4+aexlEvqBBh8bfWgW+Vh v4SzFYx9r6BklcuGW2FjBrVYOY1iiDCB/tDZEJf1L7N7h1UTfVr4WiB6j/kM/ei/EXNQ2i gcky3vg2QXQm5QztBEMlQKPY7rzWx8dwxfaCLEa8qw91q7XAY+up6FOkQ7ZPJQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627239923; a=rsa-sha256; cv=none; b=WBtL4kTofYkzOFFdR5ShsNJNnfej6QM5Cl7caE34rzj7jGvUhlgqlYtJMJNWZAoc4QpDny FvdJ6h65BtycYPdkmaAYxl4wH5xxLGKdHEreRTLJdZVQ3FLwKfOzBF6p/uqLsW8tYDcnOU 4LjKDtpTO9QkQ7YlZ3WbTGno4v2AUwbANUs+D/EsO0ryd79/NCPiiYz5D038WrAKmRHfH8 6NVswQd/t5PTqWRJceMXW4WIvNWwxZyWsFJ4DZXBeXREMSb0n7xOQtAUc3sYa7BOmGdaUA fGuKaI7w+Fir55Y+njvs0bKg8ZnMLhBie84FcqwxPNepFQBHw34Pw2YT9L/qYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=kliaLf6p; 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.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=kliaLf6p; 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: 82FF6A37F X-Spam-Score: -2.92 X-Migadu-Scanner: scn1.migadu.com X-TUID: bVM8jtSg+dt3 * gnu/packages/python-check.scm (date2name): New variable. --- diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 2a4f50ad46..c5b50da774 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,40 @@ for the @code{pytest} framework.") rounds that are calibrated to the chosen timer.") (license license:bsd-2))) + +(define-public python-date2name +(package + (name "pyton-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