depot/third_party/nixpkgs/pkgs/development/python-modules/pylsp-mypy/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

40 lines
857 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, mypy
, pytestCheckHook
, python-lsp-server
, pythonOlder
}:
buildPythonPackage rec {
pname = "pylsp-mypy";
version = "0.5.8";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Richardk2n";
repo = "pylsp-mypy";
rev = "refs/tags/${version}";
sha256 = "sha256-Yu1e/8gYFYEZ/IoFo8WnyRNYkCZ9i7NgjEjYBbagWMA=";
};
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 ];
};
}