about summary refs log tree commit diff
path: root/pkgs/development/python-modules/sphinx-autobuild/default.nix
blob: 50189474d4c1566a88c1b6d32b1243b833468e78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ lib
, buildPythonPackage
, fetchFromGitHub

# build-system
, flit-core

# dependencies
, colorama
, sphinx
, starlette
, uvicorn
, watchfiles
, websockets

# tests
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "sphinx-autobuild";
  version = "2024.04.16";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sphinx-doc";
    repo = "sphinx-autobuild";
    rev = "refs/tags/${version}";
    hash = "sha256-5HgRqt2ZTGcQ6X2sZN0gRfahmwlqpDbae5gOnGa02L0=";
  };

  build-system = [
    flit-core
  ];

  dependencies = [
    colorama
    sphinx
    starlette
    uvicorn
    watchfiles
    websockets
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "sphinx_autobuild" ];

  meta = with lib; {
    description = "Rebuild Sphinx documentation on changes, with live-reload in the browser";
    mainProgram = "sphinx-autobuild";
    homepage = "https://github.com/sphinx-doc/sphinx-autobuild";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [holgerpeters];
  };
}