1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, pythonOlder 6 7# build 8, poetry-core 9 10# propagates 11, aiohttp 12, pydantic 13, toml 14 15# tests 16, pytest-asyncio 17, pytest-mock 18, pytestCheckHook 19}: 20 21let 22 pname = "kanidm"; 23 version = "0.0.3"; 24in 25buildPythonPackage { 26 inherit pname version; 27 format = "pyproject"; 28 29 disabled = pythonOlder "3.8"; 30 31 src = fetchPypi { 32 inherit pname version; 33 hash = "sha256-sTkAKxtJa7CVYKuXC//eMmf3l8ABsrEr2mdf1r2Gf9A="; 34 }; 35 36 nativeBuildInputs = [ 37 poetry-core 38 ]; 39 40 propagatedBuildInputs = [ 41 aiohttp 42 pydantic 43 toml 44 ]; 45 46 checkInputs = [ 47 pytest-asyncio 48 pytest-mock 49 pytestCheckHook 50 ]; 51 52 pytestFlagsArray = [ 53 "-m 'not network'" 54 ]; 55 56 pythonImportsCheck = [ 57 "kanidm" 58 ]; 59 60 meta = with lib; { 61 description = "Kanidm client library"; 62 homepage = "https://github.com/kanidm/kanidm/tree/master/pykanidm"; 63 license = licenses.mpl20; 64 maintainers = with maintainers; [ arianvp hexa ]; 65 }; 66}