depot/third_party/nixpkgs/pkgs/development/python-modules/pylsp-mypy/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

40 lines
857 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, mypy
, pytestCheckHook
, python-lsp-server
, pythonOlder
}:
buildPythonPackage rec {
pname = "pylsp-mypy";
version = "0.6.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Richardk2n";
repo = "pylsp-mypy";
rev = "refs/tags/${version}";
sha256 = "sha256-uOfNSdQ1ONybEiYXW6xDHfUH+0HY9bxDlBCNl3xHEn8=";
};
disabledTests = [
"test_multiple_workspaces"
"test_option_overrides_dmypy"
];
checkInputs = [ pytestCheckHook mock ];
propagatedBuildInputs = [ mypy python-lsp-server ];
pythonImportsCheck = [ "pylsp_mypy" ];
meta = with lib; {
homepage = "https://github.com/Richardk2n/pylsp-mypy";
description = "Mypy plugin for the Python LSP Server";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}