Commit 3b0f012e authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.rstcheck-core: use nixfmt

parent 034fa641
Loading
Loading
Loading
Loading
+25 −24
Original line number Diff line number Diff line
{ lib
, stdenv
, buildPythonPackage
, docutils
, fetchFromGitHub
, importlib-metadata
, mock
, pydantic
, pytest-mock
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
, typing-extensions
{
  lib,
  stdenv,
  buildPythonPackage,
  docutils,
  fetchFromGitHub,
  importlib-metadata,
  mock,
  pydantic,
  pytest-mock,
  pytestCheckHook,
  pythonOlder,
  setuptools,
  setuptools-scm,
  typing-extensions,
}:

buildPythonPackage rec {
@@ -37,10 +38,12 @@ buildPythonPackage rec {
    NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-strict-prototypes";
  };

  dependencies = [
  dependencies =
    [
      docutils
      pydantic
  ] ++ lib.optionals (pythonOlder "3.9") [
    ]
    ++ lib.optionals (pythonOlder "3.9") [
      importlib-metadata
      typing-extensions
    ];
@@ -56,9 +59,7 @@ buildPythonPackage rec {
    "test_check_yaml_returns_error_on_bad_code_block"
  ];

  pythonImportsCheck = [
    "rstcheck_core"
  ];
  pythonImportsCheck = [ "rstcheck_core" ];

  meta = with lib; {
    description = "Library for checking syntax of reStructuredText";