Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 sphinx,
7 sphinx-last-updated-by-git,
8 sphinx-pytest,
9 defusedxml,
10 pytestCheckHook,
11}:
12let
13 pname = "sphinx-sitemap";
14 version = "2.9.0";
15in
16buildPythonPackage rec {
17 inherit pname version;
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "jdillard";
22 repo = "sphinx-sitemap";
23 tag = "v${version}";
24 hash = "sha256-TiR6F9wMWOGYexSKDzbSPPq0oiIDrZwSiO3a9DajL+0=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 sphinx
31 sphinx-last-updated-by-git
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 sphinx-pytest
37 defusedxml
38 ];
39
40 meta = with lib; {
41 changelog = "https://github.com/jdillard/sphinx-sitemap/releases/tag/${src.tag}";
42 description = "Sitemap generator for Sphinx";
43 homepage = "https://github.com/jdillard/sphinx-sitemap";
44 maintainers = with maintainers; [ alejandrosame ];
45 license = licenses.mit;
46 };
47}