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