From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uB27Ci4UpWByJQEAgWs5BA (envelope-from ) for ; Wed, 19 May 2021 15:35:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4M19Bi4UpWBeBAAAB5/wlQ (envelope-from ) for ; Wed, 19 May 2021 13:35:42 +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 B3F38277CE for ; Wed, 19 May 2021 15:35:41 +0200 (CEST) Received: from localhost ([::1]:42806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljMMO-00063f-Pm for larch@yhetil.org; Wed, 19 May 2021 09:35:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljCCk-0000cc-Qj for guix-patches@gnu.org; Tue, 18 May 2021 22:45:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46125) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljCCk-0004j6-Hf for guix-patches@gnu.org; Tue, 18 May 2021 22:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljCCk-00059q-F1 for guix-patches@gnu.org; Tue, 18 May 2021 22:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48514] [PATCH] gnu: Add python-domain-connect-dyndns. Resent-From: Mekeor Melire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 19 May 2021 02:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48514 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48514@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162139227219771 (code B ref -1); Wed, 19 May 2021 02:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 May 2021 02:44:32 +0000 Received: from localhost ([127.0.0.1]:57671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljCCC-00058m-PW for submit@debbugs.gnu.org; Tue, 18 May 2021 22:44:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:43602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljBnz-0004Wh-A6 for submit@debbugs.gnu.org; Tue, 18 May 2021 22:19:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljBny-0005eT-RQ for guix-patches@gnu.org; Tue, 18 May 2021 22:19:27 -0400 Received: from mout02.posteo.de ([185.67.36.66]:51451) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljBnw-0003FF-6F for guix-patches@gnu.org; Tue, 18 May 2021 22:19:26 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id C72D92400E5 for ; Wed, 19 May 2021 04:19:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1621390759; bh=CbEoLOLqwvRS3SLCOeIVmLM1tlJ+BeN+Zeu+NuZM5Sg=; h=From:To:Subject:Date:From; b=pBcwlSbr4E1T+I24XCQe+VfX/UmPNV2jGKTh7pkzx3OakiXFCxumxva8pHw66fy/8 6Ipv4sJ+K6j7Wq8ctr+/7b2qslwLLZgZZ6/E6h9GDFr1bTCCU0lVXZ18iBVbGzJcl7 qqFLFIWC1B/C0mN3z7j+MUC1NnXym+kOM2kA8t4hsuLR3gkeM/r1fOtf5oV7+zzOpY kOdiO9r196ARLRF/me7St3z2HR7jsPmDzyvJGDMsVSjKa7+4MfPEuZ8eWjFwuDXyDG T3+wlsun5n+Fzdd0co/RCI+q4yDskmuBaYxuyCHuZ7vbZMEqCyuRI+zmAC2yiiUYRD cfuMTei6qS81g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FlGlW0Ntwz9rxF; Wed, 19 May 2021 04:19:19 +0200 (CEST) From: Mekeor Melire Date: Wed, 19 May 2021 02:19:17 +0000 Message-ID: <87bl97lb2y.fsf@posteo.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 18 May 2021 22:44:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 19 May 2021 09:34:09 -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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621431341; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=2Xa8g65IklRVxHZPKnKVVBh+y/GEYBZaZMxWE0lTfR8=; b=unn1U1H8k6YUxAyAwBxhizNXxtB/VHrWulJnePD8nFBlwQ8nFpHR90w061hh9+jI9DTvMW RGr4dbA9yhFIAewCgnfS09d7B8BU2PaN9twrevPDqNB0nDQY30X8H3LATOybpK96ORaQbW qwlH6KMbdrvT5OhvPuZIh06aIjNDupf/NbMhAfwsJ+jx6kOrn5dPyroldosLNVjO9hWi7u s7Ywr7V7VudlFRAqBlYIYKxYeb8rYDdTLXBPiIowGRNJmy7b73PM0AAnnnmyVaLhOy4Tpa LO5g6BYPPSbUVUU+nmb5rR/II0JO23rRHhBjU2YhI82+lPyXGXHPP//x+SS/eQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621431341; a=rsa-sha256; cv=none; b=NPJ9NkVfpjWF982nAmkncymDXoIGOJup8tFS9f9W6tmdj2lX5drhPu6yAuS26P/fHAKJTQ PRHfP4siqqHr3mrTOC8N9R9wnT/MZ6Iml1Tm5xQiKH/6grScDReRXti6TbqcxZ8W/zmmQw ZALsvM5I8mooAis6SsEvQc/668bGuNl5yICDP3wvxOrdV+w1rwESnkjk5OxO5ueMBoZyLA Mp90aOalpSq95lIXvFyr8Xu/p2RyZLWudCK9r5QAPv97rnHiiNzO61ns6kirJRuQqEJxHD sHdflFuo8pklPX7yToCK0nomLyWBMv/zSunB9W43FlwXkp8OvY5ayS3GDUK54g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.de header.s=2017 header.b=pBcwlSbr; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (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.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.de header.s=2017 header.b=pBcwlSbr; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (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: B3F38277CE X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: GyeasTG6cgRT --=-=-= Content-Type: text/plain Hello Guix! It's been long time since my last contribution. (Namely, almost 4 years!) But now I got three little package declarations for you, which can be used to update DNS records of domains from certain domain-providers. For example, I'm using a well known, pretty common German domain-provider and found this python-script to be most comfortable to use. It is based on a new, open standard, called "Domain Connect", developed, used and supported by many common DNS/domain providers (see ). That was just to argue why I think these packages have a value for the public (and not just my private self). See you Mekeor --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-python-domain-connect-dyndns.patch Content-Transfer-Encoding: quoted-printable >From 488d77b3a6542598264ba964a723cf2c7d6e646f Mon Sep 17 00:00:00 2001 From: Mekeor Melire Date: Wed, 19 May 2021 03:45:08 +0200 Subject: [PATCH] gnu: Add python-domain-connect-dyndns. * gnu/packages/python-web.scm (python-publicsuffixlist, python-domain-conne= ct, python-domain-connect-dyndns): New variables. --- gnu/packages/python-web.scm | 103 ++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index b7411d21fa..41c8971c8c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -42,6 +42,7 @@ ;;; Copyright =C2=A9 2020 Giacomo Leidi ;;; Copyright =C2=A9 2021 Ekaitz Zarraga ;;; Copyright =C2=A9 2021 Greg Hogan +;;; Copyright =C2=A9 2021 Mekeor Melire ;;; ;;; This file is part of GNU Guix. ;;; @@ -4066,6 +4067,108 @@ List. Forked from and using the same API as the pu= blicsuffix package.") (define-public python2-publicsuffix2 (package-with-python2 python-publicsuffix2)) =20 +(define-public python-publicsuffixlist + (package + (name "python-publicsuffixlist") + (version "0.7.7") + (home-page "https://github.com/ko-zu/psl") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit "bff8d6a87b6bd3f6894e9211a9ee3c995ccfdcfc"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nzvw6n702y1v1z5b62lv2rnlqjr3hjpal2750sg8s713fxvxl= zz")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) + (synopsis "Parse the Public Suffix List") + (description "Parse and use a given list of public suffix domains.") + (license license:mpl2.0))) + +(define-public python-domain-connect + (package + (name "python-domain-connect") + (version "0.0.9") + (home-page "https://github.com/Domain-Connect/domainconnect_python") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xji0svamw961c7zgs1453cw2b9w94mk5qrfvqyb592l6yhmmm= 62")))) + (build-system python-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'only-single-number-versions + (lambda _ + (substitute* '("setup.py" "requirements.txt") + (("(.*)([0-9]+)\\.[0-9]+\\.[0-9]+(.*)" all begin number end) + (string-append begin number end "\n")))))))) + (propagated-inputs + `(("python-cffi" ,python-cffi) + ("python-cryptography" ,python-cryptography) + ("python-dnspython" ,python-dnspython) + ("python-future" ,python-future) + ("python-publicsuffix" ,python-publicsuffix) + ("python-publicsuffixlist" ,python-publicsuffixlist) + ("python-pycparser" ,python-pycparser) + ("python-six" ,python-six))) + (synopsis "Update DNS record of a domain per Domain Connect standard") + (description "This library provides \"Domain Connect\" for Python, whi= ch +can be used to update DNS records of domains.") + (license license:expat))) + +(define-public python-domain-connect-dyndns + (package + (name "python-domain-connect-dyndns") + (version "0.0.9") + (home-page "https://github.com/Domain-Connect/DomainConnectDDNS-Python= ") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "024wxhfifl14j8s973lg6ls6s80grf9sm417kd2rpy1a90p89dnk")))) + (build-system python-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'only-single-number-versions + (lambda _ + (substitute* '("setup.py" "requirements.txt") + (("(.*)([0-9]+)\\.[0-9]+\\.[0-9]+(.*)" all begin number end) + (string-append begin number end "\n")))))))) + (propagated-inputs + `(("python-certifi" ,python-certifi) + ("python-cffi" ,python-cffi) + ("python-chardet" ,python-chardet) + ("python-cryptography" ,python-cryptography) + ("python-dnspython" ,python-dnspython) + ("python-domain-connect" ,python-domain-connect) + ("python-future" ,python-future) + ("python-idna" ,python-idna) + ("python-publicsuffix" ,python-publicsuffix) + ("python-pycparser" ,python-pycparser) + ("python-requests" ,python-requests) + ("python-six" ,python-six) + ("python-urllib3" ,python-urllib3) + ("python-validators" ,python-validators))) + (synopsis "Update DNS record of a domain per Domain Connect standard") + (description "This package provides a client for the open standard +\"Domain Connect\" which can be used to update DNS records of domains.") + (license license:expat))) + (define-public python-werkzeug (package (name "python-werkzeug") --=20 2.30.2 --=-=-=--