Unverified Commit c5b1eca0 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

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

parents 0d910725 20df1577
Loading
Loading
Loading
Loading
+5 −13
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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;