From eb480037ead352117441133d9ac7748f67a2a432 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 9 Jul 2022 01:31:10 +0200 Subject: [PATCH] python310Packages.rstcheck: 5.0.0 -> 6.0.0.post1 --- .../python-modules/rstcheck/default.nix | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/rstcheck/default.nix b/pkgs/development/python-modules/rstcheck/default.nix index 5bf519e99ec6..b5a3ccefc08c 100644 --- a/pkgs/development/python-modules/rstcheck/default.nix +++ b/pkgs/development/python-modules/rstcheck/default.nix @@ -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" ];