Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pylsp-mypy / default.nix
blobe93e24406341479ce69decae4c52227cb1fc709f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , mypy
6 , pytestCheckHook
7 , python-lsp-server
8 , pythonOlder
9 , tomli
12 buildPythonPackage rec {
13   pname = "pylsp-mypy";
14   version = "0.6.8";
15   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "python-lsp";
21     repo = "pylsp-mypy";
22     rev = "refs/tags/${version}";
23     hash = "sha256-oEWUXkE8U7/ye6puJZRSkQFi10BPGuc8XZQbHwqOPEI=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     mypy
32     python-lsp-server
33     tomli
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [
41     "pylsp_mypy"
42   ];
44   disabledTests = [
45     # Tests wants to call dmypy
46     "test_option_overrides_dmypy"
47   ];
49   meta = with lib; {
50     description = "Mypy plugin for the Python LSP Server";
51     homepage = "https://github.com/python-lsp/pylsp-mypy";
52     license = licenses.mit;
53     maintainers = with maintainers; [ cpcloud ];
54   };