mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
78 lines
1.5 KiB
Nix
78 lines
1.5 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, cyrus_sasl
|
|
, openldap
|
|
, typing-extensions
|
|
, gevent
|
|
, tornado
|
|
, trio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bonsai";
|
|
version = "1.5.1";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "noirello";
|
|
repo = "bonsai";
|
|
rev = "v${version}";
|
|
hash = "sha256-UR/Ds5famD8kuDa6IIIyEv45eJuAcoygXef8XE+5Cxk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
buildInputs = [
|
|
cyrus_sasl
|
|
openldap
|
|
];
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
typing-extensions
|
|
];
|
|
|
|
passthru.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 ];
|
|
};
|
|
}
|