mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
python311Packages.rstcheck-core: 1.0.3 -> 1.2.0
Diff: https://github.com/rstcheck/rstcheck-core/compare/refs/tags/v1.0.3...v1.2.0 Changelog: https://github.com/rstcheck/rstcheck-core/blob/v1.2.0/CHANGELOG.md
This commit is contained in:
parent
011f3aee67
commit
31a29e6746
@ -5,38 +5,46 @@
|
||||
, fetchFromGitHub
|
||||
, importlib-metadata
|
||||
, mock
|
||||
, poetry-core
|
||||
, pydantic
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, types-docutils
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, typing-extensions
|
||||
, wheel
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rstcheck-core";
|
||||
version = "1.0.3";
|
||||
format = "pyproject";
|
||||
version = "1.2.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rstcheck";
|
||||
repo = pname;
|
||||
repo = "rstcheck-core";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-9U+GhkwBr+f3yEe7McOxqPRUuTp9vP+3WT5wZ92n32w=";
|
||||
hash = "sha256-cKJNktIB4vXt1MPRgYrJQ0aksmrVu7Y2uTyUjdx5YdA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
setuptools
|
||||
setuptools-scm
|
||||
wheel
|
||||
];
|
||||
|
||||
env = {
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-strict-prototypes";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
docutils
|
||||
importlib-metadata
|
||||
pydantic
|
||||
types-docutils
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
importlib-metadata
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
@ -46,10 +54,9 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = lib.optionals stdenv.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"
|
||||
disabledTests = [
|
||||
# https://github.com/rstcheck/rstcheck-core/issues/84
|
||||
"test_check_yaml_returns_error_on_bad_code_block"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
Loading…
Reference in New Issue
Block a user