From patchwork Wed May 19 02:19:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mekeor Melire X-Patchwork-Id: 29415 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7EF5327BC81; Wed, 19 May 2021 14:35:48 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CA5D027BC78 for ; Wed, 19 May 2021 14:35:47 +0100 (BST) Received: from localhost ([::1]:42806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljMMV-00063f-0k for patchwork@mira.cbaines.net; Wed, 19 May 2021 09:35:47 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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 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-connect, 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 © 2020 Giacomo Leidi ;;; Copyright © 2021 Ekaitz Zarraga ;;; Copyright © 2021 Greg Hogan +;;; Copyright © 2021 Mekeor Melire ;;; ;;; This file is part of GNU Guix. ;;; @@ -4066,6 +4067,108 @@ List. Forked from and using the same API as the publicsuffix package.") (define-public python2-publicsuffix2 (package-with-python2 python-publicsuffix2)) +(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 "1nzvw6n702y1v1z5b62lv2rnlqjr3hjpal2750sg8s713fxvxlzz")))) + (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 "1xji0svamw961c7zgs1453cw2b9w94mk5qrfvqyb592l6yhmmm62")))) + (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, which +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") -- 2.30.2