2022-09-09 14:08:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-01-13 08:15:51 +00:00
|
|
|
, fetchFromGitHub
|
2022-09-09 14:08:57 +00:00
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# build
|
|
|
|
, poetry-core
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
, aiohttp
|
2024-01-13 08:15:51 +00:00
|
|
|
, authlib
|
2022-09-09 14:08:57 +00:00
|
|
|
, pydantic
|
|
|
|
, toml
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "kanidm";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.0.3-unstable-2023-08-23";
|
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";
|
|
|
|
rev = "def4420c4c5c3ec4f9b02776e1d5fdb07aa3a729";
|
|
|
|
hash = "sha256-5qQb+Itguw2v1Wdvc2vp00zglfvNd3LFEDvaweRJcOc=";
|
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
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"-m 'not network'"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"kanidm"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Kanidm client library";
|
|
|
|
homepage = "https://github.com/kanidm/kanidm/tree/master/pykanidm";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ arianvp hexa ];
|
|
|
|
};
|
|
|
|
}
|