1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 httpx, 7 markdown, 8 mkdocs, 9 msgpack, 10 rich, 11 pytestCheckHook, 12 pytest-httpx, 13}: 14 15buildPythonPackage rec { 16 pname = "mkdocs-puml"; 17 version = "2.3.0"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "MikhailKravets"; 22 repo = "mkdocs_puml"; 23 tag = "v${version}"; 24 hash = "sha256-DOGS2lnFIpFdpJxIw9PJ/kvtAOhVtAJOQeMR+CVjkE0="; 25 }; 26 27 patches = [ 28 # Fix permission of copied files from the store so that they are 29 # overwritable. 30 ./fix-permissions.patch 31 ]; 32 33 build-system = [ poetry-core ]; 34 35 pythonRelaxDeps = [ 36 "httpx" 37 "rich" 38 ]; 39 40 dependencies = [ 41 httpx 42 markdown 43 mkdocs 44 msgpack 45 rich 46 ]; 47 48 pythonImportsCheck = [ "mkdocs_puml" ]; 49 50 nativeCheckInputs = [ 51 pytestCheckHook 52 pytest-httpx 53 ]; 54 55 meta = { 56 description = "Brings PlantUML to MkDocs"; 57 homepage = "https://github.com/MikhailKravets/mkdocs_puml"; 58 license = lib.licenses.mit; 59 maintainers = with lib.maintainers; [ ]; 60 }; 61}