depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-autobuild/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

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