[PATCH] gnu: Add python-ldaptor.

  • Done
  • quality assurance status badge
Details
One participant
  • Sharlatan Hellseher
Owner
unassigned
Submitted by
Sharlatan Hellseher
Severity
normal

Debbugs page

S
S
Sharlatan Hellseher wrote on 27 Feb 2024 11:09
(address . guix-patches@gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
79baa47b74835f8f93004fd047ee3a0bd8db9a44.1709060901.git.sharlatanus@gmail.com
* gnu/packages/python-xyz.scm (python-ldaptor): New variable.

Change-Id: If7d2cb7b51bb0ccc85b76d7f2d4b31857e042066
---
gnu/packages/python-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)

Toggle diff (74 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 80ec098b7a..6df55c1b7c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20007,6 +20007,55 @@ (define-public python-twisted-22
python-typing-extensions
`(,python "tk"))))))
+(define-public python-ldaptor
+ (package
+ (name "python-ldaptor")
+ (version "21.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "ldaptor" version))
+ (sha256
+ (base32 "0n53czn5pyh8923y282spdb7xc8c9rhn0n43bczanjjx6wcynjcc"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-m" "twisted.trial"
+ (string-append "-j" (number->string (parallel-job-count)))
+ "ldaptor")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'disable-failing-tests
+ (lambda _
+ ;; Testing with Twisted 22.4 results in infinite loop creating
+ ;; temporary config files, see
+ ;; <https://github.com/twisted/ldaptor/issues/238>.
+ (delete-file "ldaptor/test/test_config.py")))
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (when tests?
+ (apply invoke "python" test-flags)))))))
+ (propagated-inputs
+ (list python-passlib
+ python-pyparsing
+ python-six
+ python-twisted-22
+ python-zope-interface))
+ (home-page "https://github.com/twisted/ldaptor")
+ (synopsis "Pure-Python Twisted library for LDAP")
+ (description
+ "This package provides a Python Twisted library for LDAP, which key
+feaatures are:
+@itemize
+@item LDAP client logic
+@item separately-accessible LDAP and BER protocol message generation/parsing
+@item ASCII-format LDAP filter generation and parsing
+@item LDIF format data generation
+@item Samba password changing logic
+@end itemize")
+ (license license:expat)))
+
(define-public python-pika
(package
(name "python-pika")

base-commit: 1306beaf3f6c8ddded2a956f5863bc65aad78882
prerequisite-patch-id: e95e4f5dfdbb868da6fd30f0a02105147faf91f5
prerequisite-patch-id: 82aa4f0d751771b48cad84aff0e2c44aee64a212
prerequisite-patch-id: bf036a9eacd9f13ec4fd6bfa5fe5d941101f1e7a
prerequisite-patch-id: 0c1231398b1f03c8c353c4169f4633d57a8c382b
prerequisite-patch-id: 8eb030a25f8399d3183ad0613487f408b2e24997
prerequisite-patch-id: 362a2851ab947aad0ff87255206e4e23b60efd4e
prerequisite-patch-id: 9393c6262847dd7a8fa31d77ab0397c7c94f1dae
prerequisite-patch-id: 7337fa584ae6858660cd62cc09acfbc312bea064
prerequisite-patch-id: e24f28c35db27a23dc3afb6a095a4b0efabc897e
prerequisite-patch-id: 3e0785bcda3dd606524e04fd7a9f76312a800de5
--
2.41.0
S
S
Sharlatan Hellseher wrote on 2 Mar 2024 06:15
[PATCH v2] gnu: Add python-ldaptor.
(address . 69434@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
8a57f790659006fea7b1b69cae08e516cd8ad8bd.1709388891.git.sharlatanus@gmail.com
* gnu/packages/python-xyz.scm (python-ldaptor): New variable.

Change-Id: If7d2cb7b51bb0ccc85b76d7f2d4b31857e042066
---
gnu/packages/python-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)

Toggle diff (64 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index fc6e997b6c..71e629896c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30099,6 +30099,55 @@ (define-public python-ldap3
library.")
(license license:lgpl3+)))
+(define-public python-ldaptor
+ (package
+ (name "python-ldaptor")
+ (version "21.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "ldaptor" version))
+ (sha256
+ (base32 "0n53czn5pyh8923y282spdb7xc8c9rhn0n43bczanjjx6wcynjcc"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-m" "twisted.trial"
+ (string-append "-j" (number->string (parallel-job-count)))
+ "ldaptor")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'disable-failing-tests
+ (lambda _
+ ;; Testing with Twisted 22.4 results in infinite loop creating
+ ;; temporary config files, see
+ ;; <https://github.com/twisted/ldaptor/issues/238>.
+ (delete-file "ldaptor/test/test_config.py")))
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (when tests?
+ (apply invoke "python" test-flags)))))))
+ (propagated-inputs
+ (list python-passlib
+ python-pyparsing
+ python-six
+ python-twisted-22
+ python-zope-interface))
+ (home-page "https://github.com/twisted/ldaptor")
+ (synopsis "Pure-Python Twisted library for LDAP")
+ (description
+ "This package provides a Python Twisted library for LDAP, which key
+feaatures are:
+@itemize
+@item LDAP client logic
+@item separately-accessible LDAP and BER protocol message generation/parsing
+@item ASCII-format LDAP filter generation and parsing
+@item LDIF format data generation
+@item Samba password changing logic
+@end itemize")
+ (license license:expat)))
+
(define-public python-boltons
(package
(name "python-boltons")

base-commit: efdaa885b083e85bd380ca914addfcf32d0834f7
--
2.41.0
S
S
Sharlatan Hellseher wrote on 27 May 02:58 -0700
[PATCH] gnu: Add python-ldaptor.
(address . 69434-done@debbugs.gnu.org)
87y0uiwf2b.fsf@gmail.com
Pushed to master with modifications as
0734c42da2f60b7598cca8e88950aaf5cc1fd5af.

--
Oleg
-----BEGIN PGP SIGNATURE-----

iQJKBAEBCgA0FiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmg1jLwWHHNoYXJsYXRh
bnVzQGdtYWlsLmNvbQAKCRB21ye/9izStVXRD/9O/pm0yUa72ot4oFmSsmsgPVJO
8uOZk9TmegP6M7uP51bg0wZKxaEfUNHJs8S402kh/vHt3BQ/pgwPeqjs7xvmhmIF
6XsCO5TdmzCeSHECltMUoM7RVn238rKeiQlcmSoII8x+YQ5I+19FXRjSSC2R8G1f
OLERb6kayP0b4UcGoNrfx1MFUlJeP+oZJE1jFXqyAf9sRRT9ANwyVSBqFrliAMQY
VVUzq5d2odpd6C6mm4b3WkiGq+1bRxgt5bkLg45Mv+GHPAtXxVkHOR1q/gEXP5uY
lfJqTFDHPY7FdidbcJerAxyL+SlA7FLgq52aOVBNPQzZact8rn/ZxYswZ3iTLKJG
MnXkLmkakNyAd1FSHscG+JQE1FU3lI0vyYGMIaCRKrxXg1ELt6Otk0VV5L5GK9gQ
w0d7yFFz0Ni7CSE7u+tLvUdoki3K5mez1m4ZMCPwEB2vk+rwSgXnpPzom7m/2bDA
bc6Zx8NAOsYMGufZAZOSrOiAWA3DlSG7Z1ty/x70jFZa4owlbrXq0/Q1MLwdlA+Z
12L3g/ZOm6sw/6MzsJloV1gHW9cQtydHI6bYgISdfHbmEX3s+meIX8lfKOB67ub+
mpGIqfqBVvawHTbrb4i9jxB/pqk9PZQOtA0QE6XpARv4XxaHq6aSyHAQm24aoCfs
9jrdJcTcWe/VyTS9WA==
=pyiR
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 69434@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 69434
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch