Files
nixpkgs/pkgs/development/python-modules/bonsai/default.nix
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00

70 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
cyrus_sasl,
openldap,
gevent,
tornado,
trio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "bonsai";
version = "1.5.3";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "noirello";
repo = "bonsai";
rev = "v${version}";
hash = "sha256-SAP/YeWqow5dqXlXDzjnTWIfJhMwVeZSSUfWr1Mgmng=";
};
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.rev}/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 ];
};
}