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