Merge pull request #186873 from mweinelt/pykanidm
This commit is contained in:
commit
0b7de9ddf5
66
pkgs/development/python-modules/kanidm/default.nix
Normal file
66
pkgs/development/python-modules/kanidm/default.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, pythonOlder
|
||||
|
||||
# build
|
||||
, poetry-core
|
||||
|
||||
# propagates
|
||||
, aiohttp
|
||||
, pydantic
|
||||
, toml
|
||||
|
||||
# tests
|
||||
, pytest-asyncio
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "kanidm";
|
||||
version = "0.0.3";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-sTkAKxtJa7CVYKuXC//eMmf3l8ABsrEr2mdf1r2Gf9A=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
pydantic
|
||||
toml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydantic";
|
||||
version = "1.9.1";
|
||||
version = "1.9.2";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
|
@ -41,7 +41,7 @@ buildPythonPackage rec {
|
|||
owner = "samuelcolvin";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-jqTtNJQ9lRkxDYGG4vg91qH1jrxRU9orEeUofO+bBpA=";
|
||||
sha256 = "sha256-ZGFxyQ1qD3zZWTdfTeoGj3UcUwAzO8K0DySdVAsMHyI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
@ -4872,6 +4872,8 @@ in {
|
|||
|
||||
kaldi-active-grammar = callPackage ../development/python-modules/kaldi-active-grammar { };
|
||||
|
||||
kanidm = callPackage ../development/python-modules/kanidm { };
|
||||
|
||||
kaptan = callPackage ../development/python-modules/kaptan { };
|
||||
|
||||
karton-asciimagic = callPackage ../development/python-modules/karton-asciimagic { };
|
||||
|
|
Loading…
Reference in a new issue