python3.pkgs.sphinx-version-warning: Fix build with sphinx-prompt=1.10.0 (#426455)
This commit is contained in:
@@ -34,6 +34,10 @@ buildPythonPackage rec {
|
||||
hash = "sha256-DJ+mHu9IeEYEyf/SD+nDNtWpTf6z7tQzG0ogaECDpkU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace docs/conf.py --replace-fail "sphinx-prompt" "sphinx_prompt"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
flit-core
|
||||
|
||||
|
||||
@@ -18,33 +18,22 @@
|
||||
|
||||
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";
|
||||
version = "1.10.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sbrunner";
|
||||
repo = "sphinx-prompt";
|
||||
tag = version;
|
||||
hash = "sha256-/XxUSsW8Bowks7P+d6iTlklyMIfTb2otXva/VtRVAkM=";
|
||||
hash = "sha256-JKCTn2YkdyGLvchMT9C61PxjYxuQFzt3SjCE9JvgtVc=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace '"poetry-plugin-tweak-dependencies-version", ' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
poetry-core
|
||||
poetry-dynamic-versioning
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"docutils"
|
||||
"pygments"
|
||||
"Sphinx"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
docutils
|
||||
pygments
|
||||
sphinx
|
||||
@@ -52,9 +41,6 @@ buildPythonPackage rec {
|
||||
|
||||
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";
|
||||
|
||||
@@ -29,6 +29,10 @@ buildPythonPackage {
|
||||
"doc"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace docs/conf.py --replace-fail "sphinx-prompt" "sphinx_prompt"
|
||||
'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "humitos";
|
||||
repo = "sphinx-version-warning";
|
||||
|
||||
Reference in New Issue
Block a user