nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, mock
5, mypy
6, pytestCheckHook
7, python-lsp-server
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "pylsp-mypy";
13 version = "0.5.8";
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "Richardk2n";
18 repo = "pylsp-mypy";
19 rev = "refs/tags/${version}";
20 sha256 = "sha256-Yu1e/8gYFYEZ/IoFo8WnyRNYkCZ9i7NgjEjYBbagWMA=";
21 };
22
23 disabledTests = [
24 "test_multiple_workspaces"
25 "test_option_overrides_dmypy"
26 ];
27
28 checkInputs = [ pytestCheckHook mock ];
29
30 propagatedBuildInputs = [ mypy python-lsp-server ];
31
32 pythonImportsCheck = [ "pylsp_mypy" ];
33
34 meta = with lib; {
35 homepage = "https://github.com/Richardk2n/pylsp-mypy";
36 description = "Mypy plugin for the Python LSP Server";
37 license = licenses.mit;
38 maintainers = with maintainers; [ cpcloud ];
39 };
40}