Merge pull request #237476 from tjni/pylsp-mypy

This commit is contained in:
Sandro 2023-06-19 16:28:48 +02:00 committed by GitHub
commit 9dc5418494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,31 +2,46 @@
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, setuptools
, mypy
, pytestCheckHook
, python-lsp-server
, pythonOlder
, toml
, tomli
}:
buildPythonPackage rec {
pname = "pylsp-mypy";
version = "0.6.6";
format = "setuptools";
version = "0.6.7";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Richardk2n";
owner = "python-lsp";
repo = "pylsp-mypy";
rev = "refs/tags/${version}";
hash = "sha256-9B+GSEoQEqd1W/g0oup4xULKWOF0TgSG5DfBtyWA3vs=";
hash = "sha256-ZsNIw0xjxnU9Ue0C7TlhzVOCOCKEbCa2CsiiqeMb14I=";
};
patches = [
# https://github.com/python-lsp/pylsp-mypy/pull/64
(fetchpatch {
name = "fix-hanging-test.patch";
url = "https://github.com/python-lsp/pylsp-mypy/commit/90d28edb474135007804f1e041f88713a95736f9.patch";
hash = "sha256-3DVyUXVImRemXCuyoXlYbPJm6p8OnhBdEKmwjx88ets=";
})
];
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
mypy
python-lsp-server
toml
] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
nativeCheckInputs = [
@ -44,7 +59,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Mypy plugin for the Python LSP Server";
homepage = "https://github.com/Richardk2n/pylsp-mypy";
homepage = "https://github.com/python-lsp/pylsp-mypy";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};