Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
cyrus_sasl,
|
|
openldap,
|
|
gevent,
|
|
tornado,
|
|
trio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bonsai";
|
|
version = "1.5.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "noirello";
|
|
repo = "bonsai";
|
|
tag = "v${version}";
|
|
hash = "sha256-1AKdayvkRIY8F9UhuEvGg3uboYh7A/4BkmJ11RkYI9w=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
buildInputs = [
|
|
cyrus_sasl
|
|
openldap
|
|
];
|
|
|
|
optional-dependencies = {
|
|
gevent = [ gevent ];
|
|
tornado = [ tornado ];
|
|
trio = [ trio ];
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTestPaths = [
|
|
# requires running LDAP server
|
|
"tests/test_asyncio.py"
|
|
"tests/test_ldapclient.py"
|
|
"tests/test_ldapconnection.py"
|
|
"tests/test_ldapentry.py"
|
|
"tests/test_ldapreference.py"
|
|
"tests/test_pool.py"
|
|
];
|
|
|
|
disabledTests = [
|
|
# requires running LDAP server
|
|
"test_set_async_connect"
|
|
];
|
|
|
|
pythonImportsCheck = [ "bonsai" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/noirello/bonsai/blob/${src.tag}/CHANGELOG.rst";
|
|
description = "Python 3 module for accessing LDAP directory servers";
|
|
homepage = "https://github.com/noirello/bonsai";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|