From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KG6pAWLGNGHYDgEAgWs5BA (envelope-from ) for ; Sun, 05 Sep 2021 15:30:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +PooOWHGNGGtSgAAB5/wlQ (envelope-from ) for ; Sun, 05 Sep 2021 13:30:09 +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 67659233F8 for ; Sun, 5 Sep 2021 15:30:09 +0200 (CEST) Received: from localhost ([::1]:47246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMsDo-0000ZF-Fy for larch@yhetil.org; Sun, 05 Sep 2021 09:30:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMsDj-0000Z4-LB for guix-patches@gnu.org; Sun, 05 Sep 2021 09:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37899) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMsDj-00042Z-DZ for guix-patches@gnu.org; Sun, 05 Sep 2021 09:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mMsDj-0001A4-5b for guix-patches@gnu.org; Sun, 05 Sep 2021 09:30:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50397] [PATCH] gnu: Add python-crontab Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 05 Sep 2021 13:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50397 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Pradana Adrinusa AUMARS , 50397@debbugs.gnu.org Received: via spool by 50397-submit@debbugs.gnu.org id=B50397.16308485974429 (code B ref 50397); Sun, 05 Sep 2021 13:30:03 +0000 Received: (at 50397) by debbugs.gnu.org; 5 Sep 2021 13:29:57 +0000 Received: from localhost ([127.0.0.1]:49445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMsDY-00019I-Oc for submit@debbugs.gnu.org; Sun, 05 Sep 2021 09:29:57 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:37880 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMsDV-000191-H5 for 50397@debbugs.gnu.org; Sun, 05 Sep 2021 09:29:50 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1630848581; bh=S/DweSDYGT/3pMuaaKg/ubmPq+rcBYSsPbCFOYpK16k=; h=From:To:Subject:In-Reply-To:References:Date; b=IouXbeDjWQ/8Ki/uAloHPdnZ97ukUk7tAEisw7sRUBS2ecUIiBPpAi70DvshK5KCR Fe3kRrtG3Vv2Hi7sRq6ykP4xFCsvLeYvKayDf4x0pTr2gIkXq/KSzZmj9KjSY90vxf UQepbSa9x9DSHGnyaYFVV1vIfk6GSG0wbJQYOygU= In-Reply-To: <5113d945191397a32d6b004e70a41e43189b0bc5.camel@courrier.dev> References: <5113d945191397a32d6b004e70a41e43189b0bc5.camel@courrier.dev> Date: Sun, 05 Sep 2021 15:29:36 +0200 Message-ID: <87a6kr40cf.fsf@yoctocell.xyz> 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630848609; h=from:from:sender:sender: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=3WdyuZBKdVInGZmqai41fqhSQxQCZmdfUa+cWAKi6z0=; b=AZiHcp3wkoUpxgvYxy7IW1TSAFuN6BfgUETxjJm2XTVOe24Md/QVkQ3nhdmNcipKpfvLuN UY9inWw86iDkndGPMR8UXHdMRHVSrPesUnS+F0MMEtOLbTq7TFbXMLu6mF3t2inuO9ftR2 4DQsv3Y42qXlEt0PFUqGUYq1Gm/WtHXoIJeTtfVixtUfi5T0l6kavzkDMdQT91Pi18F4f0 2j/ZH0prl8/FSnLRGUmJtkNZ23Z1TgIt/jf++zuTRsPTzww9p6MBcB5mHr/2PEDHea+6/f CwrdF8DqL0cpPH8+NmebzMNO1KitasiSnZW9JSfUEQKNeqt66se2/yD2+qdThw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630848609; a=rsa-sha256; cv=none; b=TkHXnY6ZkthxzSoFan9wocefY+JZTJTq1AGK8FoaeFxApnnuPps8TrSU+aGxzPBmJAB5Vz P9pt53h9CrnG0disAsn0y8Q3/LvEkUiC//rXN916zqXTTEmAwEdWFGmrv6pVCDP2cKaCss m6py3fJ+kzW5hqrJxD0TuRhM9j5SAKaEz9wr2VEvEt1okbVq+SXGGIoNv0iXsDS3NyeC4r hs7298rPlGGMRlogINhFC+2+h9yuQEhojdcTvI9DRxvWDdTktaVlddYFcmV/yOenNwVx8h 7F6xMZwN6sV0YWDtVnJUwAr1QSXsYFgylCaeqZ5xrovkPtS9s6Q9KpMtm3ZGOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=IouXbeDj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); 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.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=IouXbeDj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); 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: 67659233F8 X-Spam-Score: -1.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: iRnDmFFzGUzS =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Sun, Sep 05 2021, Pradana Adrinusa AUMARS via Guix-patches via wrote: > From 1a41d362dd97eae4c236c689bea871d0512c2f4d Mon Sep 17 00:00:00 2001 > From: Pradana AUMARS > Date: Sun, 5 Sep 2021 09:46:58 +0200 > Subject: [PATCH] gnu: Add python-crontab > > * gnu/packages/python-xyz.scm (python-crontab): New variable. > --- > gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm > index 7c70829de9..bbc5bad51c 100644 > --- a/gnu/packages/python-xyz.scm > +++ b/gnu/packages/python-xyz.scm > @@ -108,6 +108,7 @@ > ;;; Copyright =C2=A9 2021 Franck P=C3=A9rignon > ;;; Copyright =C2=A9 2021 Petr Hodina > ;;; Copyright =C2=A9 2021 Simon Streit > +;;; Copyright =C2=A9 2021 Pradana Aumars > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -26556,3 +26557,25 @@ files and directories and adds a datestamp in st= andard 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-crontab > + (package > + (name "python-crontab") > + (version "2.5.1") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri name version)) > + (sha256 > + (base32 > + "0cccrqc10r8781ba81x8r2frs3pl2m4hkm599k5358ak0xr7xgjb")))) > + (build-system python-build-system) > + (arguments > + `(#:tests? #f)) What=E2=80=99s the reason for disabling tests? There is a test directory i= n the Git repo; maybe test tests aren=E2=80=99t included in the PyPi tarball? If= so, I would suggest using the Git repo instead. > + (native-inputs > + `(("python-dateutil" ,python-dateutil))) > + (synopsis "Module for reading and writing crontab files") > + (description "Crontab module for reading and writing crontab files an= d accessing the=20 > +system cron automatically and simply using a direct API.") The description should consists of one or more complete sentences, see =E2=80=9C16.4.4 Synopses and Descriptions=E2=80=9D in the manual. Maybe pr= efix the description with =E2=80=9CThis Python package provides a =E2=80=A6=E2=80=9D? This Python package provides a crontab module for reading and writing crontab files and accessing the system cron automatically and simply using a direct API. Also, wrap lines at 80 characters. > + (home-page "https://gitlab.com/doctormo/python-crontab/") > + (license license:lgpl3+))) > --=20 > 2.33.0 I am having some trouble applying the patch. =2D --8<---------------cut here---------------start------------->8--- Applying: gnu: Add python-crontab error: sha1 information is lacking or useless (gnu/packages/python-xyz.scm). error: could not build fake ancestor hint: Use 'git am --show-current-patch=3Ddiff' to see the failed patch Patch failed at 0001 gnu: Add python-crontab When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". =2D --8<---------------cut here---------------end--------------->8--- Are you able to apply it to the =E2=80=98master=E2=80=99 branch, or is it j= ust me? =2D----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmE0xkAVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5Z4MP+gNxQxG/R6d1MvgsGizFTRmHkQEl XpJdGU7LA52oewWtdZtWeSta+hWFSEAbEWEvWi3DUKDtomCXuOC8qXHfblYgCX98 buVVjQnrp3k8d9rTA+6ycIC/YEKMVmGlOtuDCm/a8IEjtwBgoFFvqa7vmqnzB71w GpTrE12TL1WV7Eh9v558r2KQSOnMT81Kg3TGbIHLsw/oW1SlLjgF+wc75gKvbTJS JDRwSpLstpn1rkA9CQCGqe3hnoL6xcWHUpMNKqXuyw8oFQoMZZy/5bzi+LezrRIO AnjEZgEe+sRA/vC4OxysfqcwDJl/lbuDU9oRHMAgtfUqnSGc/ixL9UH7FkZnp2jq 9D/eCiBaFGe8sHMgnqtsd29JFi60a71hWdhfLtUDFpFesCxlhhv+61P0jG/oaLQ5 U+OlotdDxKSfALF1BXjHYRsvHviycZf0uGvE6mvB0AX2oP+wc/adY4WGJWizesCZ RsSnIMNYdgrbkYvYP6oHxJm47FNZxkc9akbtdBTwRsuuM3a2EZmLmNlIs6NwtREQ zQA51HokmTAT2e0ydLj5f/bHur/hOysidnFTYenredbUcv5yWubwqfBKMsi9d7Qk fXmmOiBv5Rcn1PjZaeniVdn3kbedP0jzWgW8DOWo0XqliJB5PLlf+yuMmdJCrHOv hqvE1XgzdLighlwE =3DC2MV =2D----END PGP SIGNATURE-----