lol

Merge pull request #310413 from getchoo/pkgs/python-ldap/broken

python312Packages.python-ldap: disable on python 3.12

authored by

Martin Weinelt and committed by
GitHub
254c34fc 68d2daf2

+21 -23
+21 -23
pkgs/development/python-modules/python-ldap/default.nix
··· 1 - { lib 2 - , stdenv 3 - , buildPythonPackage 4 - , fetchFromGitHub 5 - , pythonOlder 1 + { 2 + lib, 3 + stdenv, 4 + buildPythonPackage, 5 + fetchFromGitHub, 6 + pythonAtLeast, 7 + pythonOlder, 6 8 7 - # build-system 8 - , setuptools 9 + # build-system 10 + setuptools, 9 11 10 - # native dependencies 11 - , openldap 12 - , cyrus_sasl 12 + # native dependencies 13 + openldap, 14 + cyrus_sasl, 13 15 14 - # dependencies 15 - , pyasn1 16 - , pyasn1-modules 16 + # dependencies 17 + pyasn1, 18 + pyasn1-modules, 17 19 18 - # tests 19 - , pytestCheckHook 20 + # tests 21 + pytestCheckHook, 20 22 }: 21 23 22 24 buildPythonPackage rec { ··· 24 26 version = "3.4.4"; 25 27 pyproject = true; 26 28 27 - disabled = pythonOlder "3.6"; 29 + disabled = pythonOlder "3.6" || pythonAtLeast "3.12"; # requires distutils 28 30 29 31 src = fetchFromGitHub { 30 32 owner = "python-ldap"; ··· 33 35 hash = "sha256-v1cWoRGxbvvFnHqnwoIfmiQQcxfaA8Bf3+M5bE5PtuU="; 34 36 }; 35 37 36 - nativeBuildInputs = [ 37 - setuptools 38 - ]; 38 + build-system = [ setuptools ]; 39 39 40 40 buildInputs = [ 41 41 openldap 42 42 cyrus_sasl 43 43 ]; 44 44 45 - propagatedBuildInputs = [ 45 + dependencies = [ 46 46 pyasn1 47 47 pyasn1-modules 48 48 ]; 49 49 50 - nativeCheckInputs = [ 51 - pytestCheckHook 52 - ]; 50 + nativeCheckInputs = [ pytestCheckHook ]; 53 51 54 52 preCheck = '' 55 53 # Needed by tests to setup a mockup ldap server.