Skip to content

Commit

Permalink
python312Packages.pytest-lsp: init at 0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
clemjvdm committed Jan 4, 2025
1 parent 438effd commit ee611d1
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pkgs/development/python-modules/pytest-lsp/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
lib,
fetchPypi,
buildPythonPackage,
hatchling,
pygls,
pytestCheckHook,
pytest-asyncio,
}:

buildPythonPackage rec {
pname = "pytest-lsp";
version = "0.4.3";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "pytest_lsp";
hash = "sha256-ND9r2i+qMg7V/Ld8lCDScDzlZdHRRP6CfjGYp9wpkRw=";
};

build-system = [
hatchling
];

dependencies = [
pygls
pytest-asyncio
];

nativeCheckInputs = [
pytestCheckHook
];

pythonImportsCheck = [ "pytest_lsp" ];

meta = {
homepage = "https://github.com/swyddfa/lsp-devtools";
changelog = "https://github.com/swyddfa/lsp-devtools/blob/develop/lib/pytest-lsp/CHANGES.md";
description = "Pytest plugin for writing end-to-end tests for language servers";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
clemjvdm
fliegendewurst
];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10552,6 +10552,8 @@ self: super: with self; {

pytask = callPackage ../development/python-modules/pytask { };

pytest-lsp = callPackage ../development/python-modules/pytest-lsp { };

pytest-mockito = callPackage ../development/python-modules/pytest-mockito { };

pytest-pudb = callPackage ../development/python-modules/pytest-pudb { };
Expand Down

0 comments on commit ee611d1

Please sign in to comment.