1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 mkdocs, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "mkdocs-redirects"; 12 version = "1.2.2"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "mkdocs"; 17 repo = "mkdocs-redirects"; 18 tag = "v${version}"; 19 hash = "sha256-YsMA00yajeGSqSB6CdKxGqyClC9Cgc3ImRBTucHEHhs="; 20 }; 21 22 build-system = [ hatchling ]; 23 24 propagatedBuildInputs = [ mkdocs ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "mkdocs_redirects" ]; 29 30 meta = with lib; { 31 description = "Open source plugin for Mkdocs page redirects"; 32 homepage = "https://github.com/mkdocs/mkdocs-redirects"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ tfc ]; 35 }; 36}