anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / pylsp-mypy / default.nix
blob42baae0b0659f5ed0e37a71a3851df6d77d8baed
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
7   # build-system
8   setuptools,
10   # dependencies
11   mypy,
12   pytestCheckHook,
13   python-lsp-server,
14   tomli,
17 buildPythonPackage rec {
18   pname = "pylsp-mypy";
19   version = "0.6.9";
20   pyproject = true;
22   disabled = pythonOlder "3.8";
24   src = fetchFromGitHub {
25     owner = "python-lsp";
26     repo = "pylsp-mypy";
27     rev = "refs/tags/${version}";
28     hash = "sha256-MP9a8dI5ggM+XEJYB6O4nYDYIXbtxi2TK5b+JQgViZQ=";
29   };
31   build-system = [ setuptools ];
33   dependencies = [
34     mypy
35     python-lsp-server
36   ] ++ lib.optional (pythonOlder "3.11") tomli;
38   nativeCheckInputs = [ pytestCheckHook ];
40   pythonImportsCheck = [ "pylsp_mypy" ];
42   disabledTests = [
43     # Tests wants to call dmypy
44     "test_option_overrides_dmypy"
45   ];
47   meta = {
48     description = "Mypy plugin for the Python LSP Server";
49     homepage = "https://github.com/python-lsp/pylsp-mypy";
50     changelog = "https://github.com/python-lsp/pylsp-mypy/releases/tag/${version}";
51     license = lib.licenses.mit;
52     maintainers = with lib.maintainers; [ cpcloud ];
53   };