python312Packages.rstcheck-core: use nixfmt
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
{ 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,13 +38,15 @@ buildPythonPackage rec {
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-strict-prototypes";
|
||||
};
|
||||
|
||||
dependencies = [
|
||||
docutils
|
||||
pydantic
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
importlib-metadata
|
||||
typing-extensions
|
||||
];
|
||||
dependencies =
|
||||
[
|
||||
docutils
|
||||
pydantic
|
||||
]
|
||||
++ lib.optionals (pythonOlder "3.9") [
|
||||
importlib-metadata
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user