Files
Martin Weinelt 63319932a3 python3Packages.kanidm: 1.8.0 -> 1.3.0
Track the PyPi releases. The Git tags are only for Kanidm itself.
2026-03-26 13:57:55 +01:00

75 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build
pdm-backend,
# propagates
aiohttp,
aiohttp-retry,
authlib,
pydantic,
python-dateutil,
toml,
typing-extensions,
# tests
openapi-spec-validator,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "kanidm";
version = "1.3.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-KlUxW/bJByQnzPdRd9Z5pStH27SpWrCijZc5jlVT5jE=";
};
build-system = [ pdm-backend ];
dependencies = [
aiohttp
aiohttp-retry
authlib
pydantic
python-dateutil
toml
typing-extensions
];
nativeCheckInputs = [
openapi-spec-validator
pytest-asyncio
pytest-mock
pytestCheckHook
];
disabledTests = [
"test_tokenstuff"
];
disabledTestMarks = [
"network"
"openapi"
];
pythonImportsCheck = [ "kanidm" ];
meta = {
description = "Kanidm client library";
homepage = "https://github.com/kanidm/kanidm/tree/master/pykanidm";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [
arianvp
hexa
];
};
}