1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, flit-core
5, pytestCheckHook
6, sphinx
7}:
8
9buildPythonPackage rec {
10 pname = "sphinxcontrib-jquery";
11 version = "3.0.0";
12 format = "pyproject";
13
14 src = fetchFromGitHub {
15 owner = "sphinx-contrib";
16 repo = "jquery";
17 rev = "refs/tags/v${version}";
18 hash = "sha256-argG+jMUqLiWo4lKWAmHmUxotHl+ddJuJZ/zcUl9u5Q=";
19 };
20
21 nativeBuildInputs = [
22 flit-core
23 ];
24
25 pythonImportsCheck = [
26 "sphinxcontrib.jquery"
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 sphinx
32 ];
33
34 meta = with lib; {
35 description = "Extension to include jQuery on newer Sphinx releases";
36 longDescription = ''
37 A sphinx extension that ensures that jQuery is installed for use
38 in Sphinx themes or extensions
39 '';
40 homepage = "https://github.com/sphinx-contrib/jquery";
41 changelog = "https://github.com/sphinx-contrib/jquery/blob/v${version}/CHANGES.rst";
42 license = licenses.bsd0;
43 maintainers = with maintainers; [ kaction ];
44 };
45}