From 22b020228f034fbfa436033b091112b1f699c2fa Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 29 Nov 2022 14:20:51 +0100 Subject: [PATCH] python310Packages.pylsp-mypy: fix test --- pkgs/development/python-modules/pylsp-mypy/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/pylsp-mypy/default.nix b/pkgs/development/python-modules/pylsp-mypy/default.nix index a2504e4bbc9d..dbb35d71c5dd 100644 --- a/pkgs/development/python-modules/pylsp-mypy/default.nix +++ b/pkgs/development/python-modules/pylsp-mypy/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , mypy , pytestCheckHook , python-lsp-server @@ -22,6 +23,14 @@ buildPythonPackage rec { hash = "sha256-fZ2bPPjBK/H2jMI4S3EhvWJaNl4tK7HstxcHSAkoFW4="; }; + patches = [ + (fetchpatch { + name = "0001-adapt-test-to-latest-mypy.patch"; + url = "https://github.com/python-lsp/pylsp-mypy/commit/99cf687798464f810b128881dbbec82aa5353e04.patch"; + sha256 = "sha256-wLaGMaW/gTab2fX7zGnemLQQNDWxBURYb7VsgEas61Y="; + }) + ]; + propagatedBuildInputs = [ mypy python-lsp-server