2024-02-02 10:51:31 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3,
|
|
|
|
pydantic,
|
|
|
|
}:
|
2023-12-03 17:35:07 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "kanidm";
|
|
|
|
version = "0.0.3";
|
2024-02-02 10:51:31 +01:00
|
|
|
in
|
|
|
|
python3.pkgs.buildPythonPackage {
|
2023-12-03 17:35:07 +01:00
|
|
|
inherit pname version;
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = python3.pythonOlder "3.8";
|
|
|
|
|
2024-02-02 10:51:31 +01:00
|
|
|
src =
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
# Latest 1.1.0-rc.15 tip
|
|
|
|
rev = "a5ca8018e3a636dbb0a79b3fd869db059d92979d";
|
|
|
|
hash = "sha256-PFGoeGn7a/lVR6rOmOKA3ydAoo3/+9RlkwBAKS22Psg=";
|
|
|
|
})
|
|
|
|
+ "/pykanidm";
|
2023-12-03 17:35:07 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [ poetry-core ];
|
|
|
|
|
2024-02-02 10:51:31 +01:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiohttp
|
|
|
|
pydantic
|
|
|
|
toml
|
|
|
|
(authlib.overridePythonAttrs (_: { doCheck = false; }))
|
|
|
|
];
|
2023-12-03 17:35:07 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "kanidm" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Kanidm client library";
|
|
|
|
homepage = "https://github.com/kanidm/kanidm/tree/master/pykanidm";
|
|
|
|
license = licenses.mpl20;
|
2024-02-02 10:51:31 +01:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
arianvp
|
|
|
|
hexa
|
|
|
|
];
|
2023-12-03 17:35:07 +01:00
|
|
|
};
|
|
|
|
}
|