at 23.05-pre 50 lines 908 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mypy 5, pytestCheckHook 6, python-lsp-server 7, pythonOlder 8, toml 9}: 10 11buildPythonPackage rec { 12 pname = "pylsp-mypy"; 13 version = "0.6.3"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "Richardk2n"; 20 repo = "pylsp-mypy"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-fZ2bPPjBK/H2jMI4S3EhvWJaNl4tK7HstxcHSAkoFW4="; 23 }; 24 25 propagatedBuildInputs = [ 26 mypy 27 python-lsp-server 28 toml 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "pylsp_mypy" 37 ]; 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/Richardk2n/pylsp-mypy"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ cpcloud ]; 49 }; 50}