{ lib, buildPythonPackage, fetchFromGitHub, # build-system setuptools, # dependencies devpi-server, ldap3, pyyaml, # tests packaging-legacy, pytest-cov-stub, pytest-mock, pytestCheckHook, webtest, }: buildPythonPackage (finalAttrs: { pname = "devpi-ldap"; version = "2.1.1-unstable-2026-01-22"; pyproject = true; src = fetchFromGitHub { owner = "devpi"; repo = "devpi-ldap"; rev = "5846e66a9206079c16321bd0f65c565ebe32be5f"; hash = "sha256-2LpreWmG6WMRrc5L7ylSej5Ce6VhfNDAW2eoJ76D49o="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail '"setuptools_changelog_shortener",' "" ''; build-system = [ setuptools ]; dependencies = [ devpi-server ldap3 pyyaml ]; nativeCheckInputs = [ packaging-legacy pytest-cov-stub pytest-mock pytestCheckHook webtest ]; pythonImportsCheck = [ "devpi_ldap" ]; passthru.skipBulkUpdate = true; # avoid reversion to previous stable version meta = { description = "LDAP authentication for devpi-server"; homepage = "https://github.com/devpi/devpi-ldap"; changelog = "https://github.com/devpi/devpi-ldap/blob/${finalAttrs.src.rev}/CHANGELOG.rst"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ confus ]; }; })