mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 06:25:23 +00:00
python310Packages.rstcheck: 3.3.1 -> 5.0.0
This commit is contained in:
parent
055652935e
commit
8f64b92d8f
@ -1,18 +1,50 @@
|
|||||||
{ lib, fetchFromGitHub, buildPythonPackage, docutils }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, docutils
|
||||||
|
, fetchFromGitHub
|
||||||
|
, poetry-core
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, types-docutils
|
||||||
|
, typing-extensions
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "rstcheck";
|
pname = "rstcheck";
|
||||||
version = "3.3.1";
|
version = "5.0.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "myint";
|
owner = "myint";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-4AhENuT+LtUMCi+aaI/rKa2gHti8sKGLdVGjdRithXI=";
|
hash = "sha256-vTUa/eP6/flxRLBuzdHoNoPoGAg6XWwu922az8tLgJM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonImportsCheck = [ "rstcheck" ];
|
nativeBuildInputs = [
|
||||||
propagatedBuildInputs = [ docutils ];
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
docutils
|
||||||
|
types-docutils
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"rstcheck"
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
# The tests need to find and call the rstcheck executable
|
||||||
|
export PATH="$PATH:$out/bin";
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Checks syntax of reStructuredText and code blocks nested within it";
|
description = "Checks syntax of reStructuredText and code blocks nested within it";
|
||||||
|
Loading…
Reference in New Issue
Block a user