rstcheck: cleanup dependencies, expose sphinx extra (#405113)

This commit is contained in:
Martin Weinelt
2025-05-08 05:42:04 +02:00
committed by GitHub
2 changed files with 9 additions and 13 deletions
@@ -1,17 +1,14 @@
{
lib,
stdenv,
buildPythonPackage,
docutils,
fetchFromGitHub,
setuptools,
setuptools-scm,
pydantic,
pytestCheckHook,
pythonOlder,
rstcheck-core,
sphinx,
typer,
types-docutils,
}:
buildPythonPackage rec {
@@ -34,20 +31,15 @@ buildPythonPackage rec {
];
dependencies = [
docutils
rstcheck-core
types-docutils
pydantic
typer
];
nativeCheckInputs = [ pytestCheckHook ];
optional-dependencies = {
sphinx = [ sphinx ];
};
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# Disabled until https://github.com/rstcheck/rstcheck-core/issues/19 is resolved.
"test_error_without_config_file_macos"
"test_file_1_is_bad_without_config_macos"
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "rstcheck" ];
+4
View File
@@ -4362,6 +4362,10 @@ with pkgs;
rstcheck = with python3Packages; toPythonApplication rstcheck;
rstcheckWithSphinx = rstcheck.overridePythonAttrs (oldAttrs: {
dependencies = oldAttrs.dependencies ++ oldAttrs.optional-dependencies.sphinx;
});
rtmpdump_gnutls = rtmpdump.override {
gnutlsSupport = true;
opensslSupport = false;