mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
python310Packages.rstcheck: 5.0.0 -> 6.0.0.post1
This commit is contained in:
parent
ae42114134
commit
eb480037ea
@ -1,26 +1,32 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, colorama
|
||||||
, docutils
|
, docutils
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, importlib-metadata
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
, pydantic
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, rstcheck-core
|
||||||
|
, shellingham
|
||||||
|
, typer
|
||||||
, types-docutils
|
, types-docutils
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "rstcheck";
|
pname = "rstcheck";
|
||||||
version = "5.0.0";
|
version = "6.0.0.post1";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "myint";
|
owner = "rstcheck";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-vTUa/eP6/flxRLBuzdHoNoPoGAg6XWwu922az8tLgJM=";
|
hash = "sha256-Ljg1cciT9qKL9xtBxQ8OLygDpV/1yR5XiJOzHrLr6xw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -28,15 +34,28 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
colorama
|
||||||
docutils
|
docutils
|
||||||
|
rstcheck-core
|
||||||
|
shellingham
|
||||||
types-docutils
|
types-docutils
|
||||||
typing-extensions
|
typing-extensions
|
||||||
|
pydantic
|
||||||
|
typer
|
||||||
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
|
typing-extensions
|
||||||
|
importlib-metadata
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace 'types-docutils = ">=0.18, <0.19"' 'types-docutils = ">=0.18"'
|
||||||
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"rstcheck"
|
"rstcheck"
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user