diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-01-20 12:57:58 +0100 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-01-20 13:12:00 +0100 |
commit | 96d31cbfe1b1d4b0be8abe34515c521360a33361 (patch) | |
tree | 005750aef9a05a789d41edfb9286b8142a1a18a5 /pkgs/development/python-modules/ldaptor | |
parent | d1bfbb992db2ca20e5fc804ecdc174a419baa590 (diff) |
python3Packages.ldaptor: run tests
Also disable on non-supported python versions
Diffstat (limited to 'pkgs/development/python-modules/ldaptor')
-rw-r--r-- | pkgs/development/python-modules/ldaptor/default.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/ldaptor/default.nix b/pkgs/development/python-modules/ldaptor/default.nix index 2a4550d6b423c..e3694bffe3786 100644 --- a/pkgs/development/python-modules/ldaptor/default.nix +++ b/pkgs/development/python-modules/ldaptor/default.nix @@ -3,12 +3,13 @@ , fetchPypi , twisted , passlib -, pycrypto , pyopenssl , pyparsing , service-identity , zope_interface , isPy3k +, pythonAtLeast +, python }: buildPythonPackage rec { @@ -21,13 +22,15 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - twisted passlib pycrypto pyopenssl pyparsing service-identity zope_interface + twisted passlib pyopenssl pyparsing service-identity zope_interface ]; - disabled = isPy3k; + # https://github.com/twisted/ldaptor/pull/210 + disabled = !isPy3k || pythonAtLeast "3.9"; - # TypeError: None is neither bytes nor unicode - doCheck = false; + checkPhase = '' + ${python.interpreter} -m twisted.trial ldaptor + ''; meta = { description = "A Pure-Python Twisted library for LDAP"; |