Merge pull request #310413 from getchoo/pkgs/python-ldap/broken
python312Packages.python-ldap: disable on python 3.12
This commit is contained in:
commit
254c34fc45
1 changed files with 21 additions and 23 deletions
|
@ -1,22 +1,24 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonAtLeast,
|
||||
pythonOlder,
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# native dependencies
|
||||
, openldap
|
||||
, cyrus_sasl
|
||||
# native dependencies
|
||||
openldap,
|
||||
cyrus_sasl,
|
||||
|
||||
# dependencies
|
||||
, pyasn1
|
||||
, pyasn1-modules
|
||||
# dependencies
|
||||
pyasn1,
|
||||
pyasn1-modules,
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -24,7 +26,7 @@ buildPythonPackage rec {
|
|||
version = "3.4.4";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.6" || pythonAtLeast "3.12"; # requires distutils
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-ldap";
|
||||
|
@ -33,23 +35,19 @@ buildPythonPackage rec {
|
|||
hash = "sha256-v1cWoRGxbvvFnHqnwoIfmiQQcxfaA8Bf3+M5bE5PtuU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
buildInputs = [
|
||||
openldap
|
||||
cyrus_sasl
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
pyasn1
|
||||
pyasn1-modules
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
preCheck = ''
|
||||
# Needed by tests to setup a mockup ldap server.
|
||||
|
|
Loading…
Reference in a new issue