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