mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
python3Packages.python-ldap: rename from ldap
This commit is contained in:
parent
e118a8d81f
commit
b60e4d71d6
12 changed files with 44 additions and 30 deletions
|
@ -120,7 +120,7 @@ in python.pkgs.buildPythonApplication rec {
|
||||||
pypdf2
|
pypdf2
|
||||||
pyserial
|
pyserial
|
||||||
python-dateutil
|
python-dateutil
|
||||||
ldap
|
python-ldap
|
||||||
python-stdnum
|
python-stdnum
|
||||||
pytz
|
pytz
|
||||||
pyusb
|
pyusb
|
||||||
|
|
|
@ -32,7 +32,7 @@ let
|
||||||
pythonDeps = with python.pkgs; [
|
pythonDeps = with python.pkgs; [
|
||||||
flask flask_assets flask_login flask-sqlalchemy flask_migrate flask-seasurf flask_mail flask-session flask-sslify
|
flask flask_assets flask_login flask-sqlalchemy flask_migrate flask-seasurf flask_mail flask-session flask-sslify
|
||||||
mysqlclient psycopg2 sqlalchemy
|
mysqlclient psycopg2 sqlalchemy
|
||||||
cffi configobj cryptography bcrypt requests ldap pyotp qrcode dnspython
|
cffi configobj cryptography bcrypt requests python-ldap pyotp qrcode dnspython
|
||||||
gunicorn python3-saml pytz cssmin rjsmin authlib bravado-core
|
gunicorn python3-saml pytz cssmin rjsmin authlib bravado-core
|
||||||
lima pytimeparse pyyaml jinja2 itsdangerous werkzeug
|
lima pytimeparse pyyaml jinja2 itsdangerous werkzeug
|
||||||
];
|
];
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
|
|
||||||
# runtime
|
# runtime
|
||||||
, ldap
|
|
||||||
, django
|
, django
|
||||||
|
, python-ldap
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
, python
|
, python
|
||||||
|
@ -33,7 +33,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
django
|
django
|
||||||
ldap
|
python-ldap
|
||||||
];
|
];
|
||||||
|
|
||||||
# ValueError: SCHEMADIR is None, ldap schemas are missing.
|
# ValueError: SCHEMADIR is None, ldap schemas are missing.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib, buildPythonPackage, fetchPypi
|
||||||
, pbr, ldap, prettytable, fixtures, testresources, testtools }:
|
, pbr, python-ldap, prettytable, fixtures, testresources, testtools }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ldappool";
|
pname = "ldappool";
|
||||||
|
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ pbr ];
|
nativeBuildInputs = [ pbr ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ ldap prettytable ];
|
propagatedBuildInputs = [ python-ldap prettytable ];
|
||||||
|
|
||||||
checkInputs = [ fixtures testresources testtools ];
|
checkInputs = [ fixtures testresources testtools ];
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,39 @@
|
||||||
{ buildPythonPackage, fetchPypi
|
{ lib
|
||||||
, pyasn1, pyasn1-modules
|
, stdenv
|
||||||
, pythonAtLeast, pytestCheckHook
|
, buildPythonPackage
|
||||||
, openldap, cyrus_sasl, lib, stdenv }:
|
, fetchPypi
|
||||||
|
, pyasn1
|
||||||
|
, pyasn1-modules
|
||||||
|
, pythonAtLeast
|
||||||
|
, pythonOlder
|
||||||
|
, pytestCheckHook
|
||||||
|
, openldap
|
||||||
|
, cyrus_sasl
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-ldap";
|
pname = "python-ldap";
|
||||||
version = "3.4.2";
|
version = "3.4.2";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-sWRwoJg6rwmgD/uPQLaaJEbz0L5jmiKSVrzjgfyyaPc=";
|
hash = "sha256-sWRwoJg6rwmgD/uPQLaaJEbz0L5jmiKSVrzjgfyyaPc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyasn1 pyasn1-modules ];
|
buildInputs = [
|
||||||
|
openldap
|
||||||
|
cyrus_sasl
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook ];
|
propagatedBuildInputs = [
|
||||||
buildInputs = [ openldap cyrus_sasl ];
|
pyasn1
|
||||||
|
pyasn1-modules
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# Needed by tests to setup a mockup ldap server.
|
# Needed by tests to setup a mockup ldap server.
|
||||||
|
@ -25,11 +43,6 @@ buildPythonPackage rec {
|
||||||
export SCHEMA="${openldap}/etc/schema"
|
export SCHEMA="${openldap}/etc/schema"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
disabledTests = lib.optionals (pythonAtLeast "3.9") [
|
|
||||||
# See https://github.com/python-ldap/python-ldap/issues/407
|
|
||||||
"test_simple_bind_noarg"
|
|
||||||
];
|
|
||||||
|
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
|
@ -3,7 +3,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, django
|
, django
|
||||||
, suds-jurko
|
, suds-jurko
|
||||||
, ldap
|
, python-ldap
|
||||||
, mechanize
|
, mechanize
|
||||||
, beautifulsoup4
|
, beautifulsoup4
|
||||||
, pyxdg
|
, pyxdg
|
||||||
|
@ -24,7 +24,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
django suds-jurko ldap mechanize beautifulsoup4 pyxdg python-dateutil requests
|
django suds-jurko python-ldap mechanize beautifulsoup4 pyxdg python-dateutil requests
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ httpretty ];
|
buildInputs = [ httpretty ];
|
||||||
|
|
|
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export SGML_CATALOG_FILES="${docbookFiles}"
|
export SGML_CATALOG_FILES="${docbookFiles}"
|
||||||
export PYTHONPATH=$(find ${python3.pkgs.ldap} -type d -name site-packages)
|
export PYTHONPATH=$(find ${python3.pkgs.python-ldap} -type d -name site-packages)
|
||||||
export PATH=$PATH:${openldap}/libexec
|
export PATH=$PATH:${openldap}/libexec
|
||||||
|
|
||||||
configureFlagsArray=(
|
configureFlagsArray=(
|
||||||
|
@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
|
||||||
samba nfs-utils p11-kit python3 popt
|
samba nfs-utils p11-kit python3 popt
|
||||||
talloc tdb tevent ldb pam openldap pcre2 libkrb5
|
talloc tdb tevent ldb pam openldap pcre2 libkrb5
|
||||||
cifs-utils glib keyutils dbus fakeroot libxslt libxml2
|
cifs-utils glib keyutils dbus fakeroot libxslt libxml2
|
||||||
libuuid python3.pkgs.ldap systemd nspr check cmocka uid_wrapper
|
libuuid python3.pkgs.python-ldap systemd nspr check cmocka uid_wrapper
|
||||||
nss_wrapper ncurses Po4a http-parser jansson jose ];
|
nss_wrapper ncurses Po4a http-parser jansson jose ];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
|
|
|
@ -81,7 +81,7 @@ stdenv.mkDerivation rec {
|
||||||
# lib389
|
# lib389
|
||||||
(python3.withPackages (ps: with ps; [
|
(python3.withPackages (ps: with ps; [
|
||||||
setuptools
|
setuptools
|
||||||
ldap
|
python-ldap
|
||||||
six
|
six
|
||||||
pyasn1
|
pyasn1
|
||||||
pyasn1-modules
|
pyasn1-modules
|
||||||
|
|
|
@ -20,7 +20,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
impacket
|
impacket
|
||||||
pwntools
|
pwntools
|
||||||
ldap
|
python-ldap
|
||||||
] ++ [
|
] ++ [
|
||||||
john
|
john
|
||||||
];
|
];
|
||||||
|
|
|
@ -19,8 +19,8 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
impacket
|
impacket
|
||||||
ldap
|
|
||||||
ldap3
|
ldap3
|
||||||
|
python-ldap
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
|
@ -95,6 +95,7 @@ mapAliases ({
|
||||||
influxgraph = throw "influxgraph has been removed because it is no longer maintained"; # added 2022-07-10
|
influxgraph = throw "influxgraph has been removed because it is no longer maintained"; # added 2022-07-10
|
||||||
jupyter_client = jupyter-client; # added 2021-10-15
|
jupyter_client = jupyter-client; # added 2021-10-15
|
||||||
Keras = keras; # added 2021-11-25
|
Keras = keras; # added 2021-11-25
|
||||||
|
ldap = python-ldap; # added 2022-09-16
|
||||||
lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04
|
lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04
|
||||||
loo-py = loopy; # added 2022-05-03
|
loo-py = loopy; # added 2022-05-03
|
||||||
Markups = markups; # added 2022-02-14
|
Markups = markups; # added 2022-02-14
|
||||||
|
|
|
@ -5071,10 +5071,6 @@ in {
|
||||||
|
|
||||||
lc7001 = callPackage ../development/python-modules/lc7001 { };
|
lc7001 = callPackage ../development/python-modules/lc7001 { };
|
||||||
|
|
||||||
ldap = callPackage ../development/python-modules/ldap {
|
|
||||||
inherit (pkgs) openldap cyrus_sasl;
|
|
||||||
};
|
|
||||||
|
|
||||||
ldap3 = callPackage ../development/python-modules/ldap3 { };
|
ldap3 = callPackage ../development/python-modules/ldap3 { };
|
||||||
|
|
||||||
ldapdomaindump = callPackage ../development/python-modules/ldapdomaindump { };
|
ldapdomaindump = callPackage ../development/python-modules/ldapdomaindump { };
|
||||||
|
@ -8935,6 +8931,10 @@ in {
|
||||||
|
|
||||||
python_keyczar = callPackage ../development/python-modules/python_keyczar { };
|
python_keyczar = callPackage ../development/python-modules/python_keyczar { };
|
||||||
|
|
||||||
|
python-ldap = callPackage ../development/python-modules/python-ldap {
|
||||||
|
inherit (pkgs) openldap cyrus_sasl;
|
||||||
|
};
|
||||||
|
|
||||||
python-ldap-test = callPackage ../development/python-modules/python-ldap-test { };
|
python-ldap-test = callPackage ../development/python-modules/python-ldap-test { };
|
||||||
|
|
||||||
python-Levenshtein = callPackage ../development/python-modules/python-levenshtein { };
|
python-Levenshtein = callPackage ../development/python-modules/python-levenshtein { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue