Merge pull request #173785 from fabaff/rstcheck-bump
python310Packages.rstcheck: 3.3.1 -> 5.0.0
This commit is contained in:
commit
47bcdb37fe
@ -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";
|
||||||
|
29
pkgs/development/python-modules/types-docutils/default.nix
Normal file
29
pkgs/development/python-modules/types-docutils/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "types-docutils";
|
||||||
|
version = "0.18.3";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
hash = "sha256-oO+DHcIGNfNQ+pz/WRIxwx0n51dx5Z/WyXm2wMfgMpI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Module doesn't have tests
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"docutils-stubs"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Typing stubs for docutils";
|
||||||
|
homepage = "https://github.com/python/typeshed";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -9821,6 +9821,8 @@ with pkgs;
|
|||||||
|
|
||||||
rst2html5 = callPackage ../tools/text/rst2html5 { };
|
rst2html5 = callPackage ../tools/text/rst2html5 { };
|
||||||
|
|
||||||
|
rstcheck = with python3Packages; toPythonApplication rstcheck;
|
||||||
|
|
||||||
rt = callPackage ../servers/rt { };
|
rt = callPackage ../servers/rt { };
|
||||||
|
|
||||||
rtmpdump = callPackage ../tools/video/rtmpdump { };
|
rtmpdump = callPackage ../tools/video/rtmpdump { };
|
||||||
|
@ -10572,6 +10572,8 @@ in {
|
|||||||
|
|
||||||
types-decorator = callPackage ../development/python-modules/types-decorator { };
|
types-decorator = callPackage ../development/python-modules/types-decorator { };
|
||||||
|
|
||||||
|
types-docutils = callPackage ../development/python-modules/types-docutils { };
|
||||||
|
|
||||||
types-enum34 = callPackage ../development/python-modules/types-enum34 { };
|
types-enum34 = callPackage ../development/python-modules/types-enum34 { };
|
||||||
|
|
||||||
types-freezegun = callPackage ../development/python-modules/types-freezegun { };
|
types-freezegun = callPackage ../development/python-modules/types-freezegun { };
|
||||||
|
Loading…
Reference in New Issue
Block a user