2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# build
|
|
|
|
poetry-core,
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# propagates
|
|
|
|
aiohttp,
|
|
|
|
authlib,
|
|
|
|
pydantic,
|
|
|
|
toml,
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# tests
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
2022-09-09 14:08:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "kanidm";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.0.0-2024-04-22";
|
2022-09-09 14:08:57 +00:00
|
|
|
in
|
2024-04-21 15:54:59 +00:00
|
|
|
buildPythonPackage rec {
|
2022-09-09 14:08:57 +00:00
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kanidm";
|
|
|
|
repo = "kanidm";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "a0f743d8c8e7a6b6b0775e64774fc5175464cab6";
|
|
|
|
hash = "sha256-W2v3/osDrjRQqz2DqoG90SGcu4K6G2ypMTfE6Xq5qNI=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
sourceRoot = "${src.name}/pykanidm";
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2024-01-13 08:15:51 +00:00
|
|
|
authlib
|
2022-09-09 14:08:57 +00:00
|
|
|
pydantic
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-09 14:08:57 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "-m 'not network'" ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "kanidm" ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Kanidm client library";
|
|
|
|
homepage = "https://github.com/kanidm/kanidm/tree/master/pykanidm";
|
|
|
|
license = licenses.mpl20;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
arianvp
|
|
|
|
hexa
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
}
|