depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-autobuild/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

55 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 ];
};
}