1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, sphinx
6, sphinx-pytest
7, pytestCheckHook
8}:
9let
10 pname = "sphinx-sitemap";
11 version = "2.5.1";
12in
13buildPythonPackage {
14 inherit pname version;
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "jdillard";
19 repo = "sphinx-sitemap";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-R8nAaEPd2vQs9Z0Fa5yvTP0KP3O+DnIJLPeISZ10Xtk=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 ];
27
28 propagatedBuildInputs = [
29 sphinx
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 sphinx-pytest
35 ];
36
37 meta = with lib; {
38 changelog = "https://github.com/jdillard/sphinx-sitemap/releases/tag/v${version}";
39 description = "Sitemap generator for Sphinx";
40 homepage = "https://github.com/jdillard/sphinx-sitemap";
41 maintainers = with maintainers; [ alejandrosame ];
42 license = licenses.mit;
43 };
44}