infrastructure/machines/compute01/k-radius/packages/pykanidm.nix

53 lines
999 B
Nix
Raw Normal View History

{
lib,
fetchFromGitHub,
python3,
pydantic,
}:
2023-12-03 17:35:07 +01:00
let
pname = "kanidm";
version = "0.0.3";
in
python3.pkgs.buildPythonPackage {
2023-12-03 17:35:07 +01:00
inherit pname version;
format = "pyproject";
disabled = python3.pythonOlder "3.8";
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 ];
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;
maintainers = with maintainers; [
arianvp
hexa
];
2023-12-03 17:35:07 +01:00
};
}