nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 hatchling,
6 pygls,
7 pytestCheckHook,
8 pytest-asyncio,
9 packaging,
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-lsp";
14 version = "1.0.0";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit version;
19 pname = "pytest_lsp";
20 hash = "sha256-uoyVstl1o2Akn/pXaOHm9E2H0Q73dUBw07MhECckovE=";
21 };
22
23 build-system = [
24 hatchling
25 ];
26
27 dependencies = [
28 pygls
29 pytest-asyncio
30 packaging
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "pytest_lsp" ];
38
39 meta = {
40 homepage = "https://github.com/swyddfa/lsp-devtools";
41 changelog = "https://github.com/swyddfa/lsp-devtools/blob/develop/lib/pytest-lsp/CHANGES.md";
42 description = "Pytest plugin for writing end-to-end tests for language servers";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [
45 clemjvdm
46 fliegendewurst
47 ];
48 };
49}