bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonRelaxDepsHook,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
poetry-dynamic-versioning,
|
|
|
|
# dependencies
|
|
docutils,
|
|
pygments,
|
|
sphinx,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-prompt";
|
|
version = "1.7.0"; # read before updating past 1.7.0 https://github.com/sbrunner/sphinx-prompt/issues/398
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sbrunner";
|
|
repo = "sphinx-prompt";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-/XxUSsW8Bowks7P+d6iTlklyMIfTb2otXva/VtRVAkM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace '"poetry-plugin-tweak-dependencies-version", ' ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
poetry-dynamic-versioning
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"docutils"
|
|
"pygments"
|
|
"Sphinx"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
docutils
|
|
pygments
|
|
sphinx
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
# versions >=1.8.0 cannot be build from source
|
|
passthru.skipBulkUpdate = true;
|
|
|
|
meta = with lib; {
|
|
description = "Sphinx extension for creating unselectable prompt";
|
|
homepage = "https://github.com/sbrunner/sphinx-prompt";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ kaction ];
|
|
};
|
|
}
|