1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 flit-core,
8
9 # dependencies
10 colorama,
11 sphinx,
12 starlette,
13 uvicorn,
14 watchfiles,
15 websockets,
16
17 # tests
18 pytestCheckHook,
19}:
20
21buildPythonPackage rec {
22 pname = "sphinx-autobuild";
23 version = "2024.04.16";
24 pyproject = true;
25
26 src = fetchFromGitHub {
27 owner = "sphinx-doc";
28 repo = "sphinx-autobuild";
29 rev = "refs/tags/${version}";
30 hash = "sha256-5HgRqt2ZTGcQ6X2sZN0gRfahmwlqpDbae5gOnGa02L0=";
31 };
32
33 build-system = [ flit-core ];
34
35 dependencies = [
36 colorama
37 sphinx
38 starlette
39 uvicorn
40 watchfiles
41 websockets
42 ];
43
44 nativeCheckInputs = [ pytestCheckHook ];
45
46 pythonImportsCheck = [ "sphinx_autobuild" ];
47
48 meta = with lib; {
49 description = "Rebuild Sphinx documentation on changes, with live-reload in the browser";
50 mainProgram = "sphinx-autobuild";
51 homepage = "https://github.com/sphinx-doc/sphinx-autobuild";
52 license = with licenses; [ mit ];
53 maintainers = with maintainers; [ holgerpeters ];
54 };
55}