[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/21: gnu: Add python-py3dns.
From: |
guix-commits |
Subject: |
01/21: gnu: Add python-py3dns. |
Date: |
Mon, 20 Jul 2020 11:00:38 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit a3c0a8f41021609377b6b6467dabe2c821e465d8
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Jul 20 16:57:57 2020 +0300
gnu: Add python-py3dns.
* gnu/packages/python-xyz.scm (python-py3dns): New variable.
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f55f888..a48f394 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12321,6 +12321,37 @@ It supports TSIG authenticated messages and EDNS0.")
(define-public python2-dnspython
(package-with-python2 python-dnspython))
+(define-public python-py3dns
+ (package
+ (name "python-py3dns")
+ (version "3.2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "py3dns" version))
+ (sha256
+ (base32
+ "1r25f0ys5p37bhld7m7n4gb0lrysaym3w318w2f8bncq7r3d81qz"))))
+ (build-system python-build-system)
+ ;; This package wants to read /etc/resolv.conf. We can't patch it without
+ ;; removing functionality so we copy from Nix and "just don't build it".
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-source
+ (lambda _
+ (substitute* "setup.py"
+ (("import DNS") "")
+ (("DNS.__version__") (string-append "\"" ,version "\"")))
+ #t)))
+ #:tests? #f)) ; Also skip the tests.
+ (home-page "https://launchpad.net/py3dns")
+ (synopsis "Python 3 DNS library")
+ (description "This Python 3 module provides a DNS API for looking up DNS
+entries from within Python 3 modules and applications. This module is a
+simple, lightweight implementation.")
+ (license license:psfl)))
+
(define-public python-email-validator
(package
(name "python-email-validator")
- branch master updated (099516c -> 4874cae), guix-commits, 2020/07/20
- 03/21: gnu: python-zope-exceptions: Update to 4.4., guix-commits, 2020/07/20
- 01/21: gnu: Add python-py3dns.,
guix-commits <=
- 02/21: gnu: python-zope-testrunner: Update to 5.2., guix-commits, 2020/07/20
- 06/21: gnu: python-zope-exceptions: Enable tests., guix-commits, 2020/07/20
- 05/21: gnu: Add python-zope-testrunner-bootstrap., guix-commits, 2020/07/20
- 08/21: gnu: Add python-zope-security-bootstrap., guix-commits, 2020/07/20
- 07/21: gnu: Add python-zope-proxy-bootstrap., guix-commits, 2020/07/20
- 11/21: gnu: python-zope-interface: Update to 5.1.0., guix-commits, 2020/07/20
- 16/21: gnu: Add python-btrees., guix-commits, 2020/07/20
- 20/21: gnu: Adsd python-transaction., guix-commits, 2020/07/20
- 10/21: gnu: python-zope-proxy: Update to 4.3.5., guix-commits, 2020/07/20
- 15/21: gnu: Add python-persistent., guix-commits, 2020/07/20