1{ lib
2, callPackage
3, buildPythonPackage
4, fetchFromGitHub
5, mkdocs
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "mkdocs-redirects";
11 version = "1.2.0";
12
13 src = fetchFromGitHub {
14 owner = "mkdocs";
15 repo = pname;
16 rev = "refs/tags/v${version}";
17 sha256 = "sha256-+Ti+Z5gL5vVlQDt+KRw9nNHHKhRtEfguQe1K001DK9E=";
18 };
19
20 propagatedBuildInputs = [
21 mkdocs
22 ];
23
24 checkInputs = [
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}