summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-03-02 14:15:29 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-05-27 10:56:59 +0100
commit0734c42da2f60b7598cca8e88950aaf5cc1fd5af (patch)
treeb291456fbc29908febfa4080e0bbcb3bee5ac76c /gnu/packages/python-web.scm
parent6b8b8e3b858485bcbf4f67051591ee643bc04e75 (diff)
gnu: Add python-ldaptor.
* gnu/packages/python-web.scm (python-ldaptor): New variable. Change-Id: If7d2cb7b51bb0ccc85b76d7f2d4b31857e042066
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm53
1 files changed, 53 insertions, 0 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index a7dc180d7e5..9c85cf27025 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -828,6 +828,59 @@ scripting Launchpad via its the web service API.")
828reusable library for parsing, manipulating, and generating URIs.") 828reusable library for parsing, manipulating, and generating URIs.")
829 (license license:lgpl3))) 829 (license license:lgpl3)))
830 830
831(define-public python-ldaptor
832 (package
833 (name "python-ldaptor")
834 (version "21.2.0")
835 (source
836 (origin
837 (method url-fetch)
838 (uri (pypi-uri "ldaptor" version))
839 (sha256
840 (base32 "0n53czn5pyh8923y282spdb7xc8c9rhn0n43bczanjjx6wcynjcc"))))
841 (build-system pyproject-build-system)
842 (arguments
843 (list
844 #:test-flags
845 #~(list "-m" "twisted.trial"
846 (string-append "-j" (number->string (parallel-job-count)))
847 "ldaptor")
848 #:phases
849 #~(modify-phases %standard-phases
850 (add-before 'check 'disable-failing-tests
851 (lambda _
852 ;; Testing with Twisted 22.4 results in infinite loop creating
853 ;; temporary config files, see
854 ;; <https://github.com/twisted/ldaptor/issues/238>.
855 (delete-file "ldaptor/test/test_config.py")))
856 (replace 'check
857 (lambda* (#:key tests? test-flags #:allow-other-keys)
858 (when tests?
859 (apply invoke "python" test-flags)))))))
860 (native-inputs
861 (list python-setuptools
862 python-wheel))
863 (propagated-inputs
864 (list python-passlib
865 python-pyopenssl
866 python-service-identity ; to pass sanity check, for Twisted[tls]
867 python-pyparsing
868 python-twisted
869 python-zope-interface))
870 (home-page "https://github.com/twisted/ldaptor")
871 (synopsis "Pure-Python Twisted library for LDAP")
872 (description
873 "This package provides a Python Twisted library for LDAP, which key
874feaatures are:
875@itemize
876@item LDAP client logic
877@item separately-accessible LDAP and BER protocol message generation/parsing
878@item ASCII-format LDAP filter generation and parsing
879@item LDIF format data generation
880@item Samba password changing logic
881@end itemize")
882 (license license:expat)))
883
831(define-public python-legacy-cgi 884(define-public python-legacy-cgi
832 (package 885 (package
833 (name "python-legacy-cgi") 886 (name "python-legacy-cgi")