5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{ 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];
|
|
};
|
|
}
|