at 24.11-pre 50 lines 966 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 mypy, 7 pytestCheckHook, 8 python-lsp-server, 9 pythonOlder, 10 tomli, 11}: 12 13buildPythonPackage rec { 14 pname = "pylsp-mypy"; 15 version = "0.6.8"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "python-lsp"; 22 repo = "pylsp-mypy"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-oEWUXkE8U7/ye6puJZRSkQFi10BPGuc8XZQbHwqOPEI="; 25 }; 26 27 nativeBuildInputs = [ setuptools ]; 28 29 propagatedBuildInputs = [ 30 mypy 31 python-lsp-server 32 tomli 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "pylsp_mypy" ]; 38 39 disabledTests = [ 40 # Tests wants to call dmypy 41 "test_option_overrides_dmypy" 42 ]; 43 44 meta = with lib; { 45 description = "Mypy plugin for the Python LSP Server"; 46 homepage = "https://github.com/python-lsp/pylsp-mypy"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ cpcloud ]; 49 }; 50}