nav: init at 1.2.1 (#356071)
[NixPkgs.git] / pkgs / development / python-modules / sphinx-autobuild / default.nix
blob33314d868f6d2552b50cdf1487156d0dfa4a2f07
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   # build-system
7   flit-core,
9   # dependencies
10   colorama,
11   httpx,
12   sphinx,
13   starlette,
14   uvicorn,
15   watchfiles,
16   websockets,
18   # tests
19   pytestCheckHook,
22 buildPythonPackage rec {
23   pname = "sphinx-autobuild";
24   version = "2024.09.19";
25   pyproject = true;
27   src = fetchFromGitHub {
28     owner = "sphinx-doc";
29     repo = "sphinx-autobuild";
30     rev = "refs/tags/${version}";
31     hash = "sha256-azSQ524iXWeW7D1NgpWErFL4K0TBZ8ib6lRr1J246h4=";
32   };
34   build-system = [ flit-core ];
36   dependencies = [
37     colorama
38     httpx
39     sphinx
40     starlette
41     uvicorn
42     watchfiles
43     websockets
44   ];
46   nativeCheckInputs = [ pytestCheckHook ];
48   pythonImportsCheck = [ "sphinx_autobuild" ];
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   };