python310Packages.rstcheck: 5.0.0 -> 6.0.0.post1

This commit is contained in:
Fabian Affolter 2022-07-09 01:31:10 +02:00
parent ae42114134
commit eb480037ea

View File

@ -1,26 +1,32 @@
{ lib
, buildPythonPackage
, colorama
, docutils
, fetchFromGitHub
, importlib-metadata
, poetry-core
, pydantic
, pytestCheckHook
, pythonOlder
, rstcheck-core
, shellingham
, typer
, types-docutils
, typing-extensions
}:
buildPythonPackage rec {
pname = "rstcheck";
version = "5.0.0";
version = "6.0.0.post1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "myint";
owner = "rstcheck";
repo = pname;
rev = "v${version}";
hash = "sha256-vTUa/eP6/flxRLBuzdHoNoPoGAg6XWwu922az8tLgJM=";
hash = "sha256-Ljg1cciT9qKL9xtBxQ8OLygDpV/1yR5XiJOzHrLr6xw=";
};
nativeBuildInputs = [
@ -28,15 +34,28 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
colorama
docutils
rstcheck-core
shellingham
types-docutils
typing-extensions
pydantic
typer
] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions
importlib-metadata
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'types-docutils = ">=0.18, <0.19"' 'types-docutils = ">=0.18"'
'';
pythonImportsCheck = [
"rstcheck"
];