python310Packages.lsprotocol: init at 2022.0.0a9

This commit is contained in:
Doron Behar
2023-01-25 21:42:56 +01:00
committed by Fabian Affolter
parent e9b5ece54c
commit 54d3bd62ab
2 changed files with 60 additions and 0 deletions
@@ -0,0 +1,58 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, cattrs
, attrs
, nox
, pytest
, pyhamcrest
, jsonschema
}:
buildPythonPackage rec {
pname = "lsprotocol";
version = "2022.0.0a9";
format = "pyproject";
src = fetchFromGitHub {
owner = "microsoft";
repo = pname;
rev = version;
hash = "sha256-6XecPKuBhwtkmZrGozzO+VEryI5wwy9hlvWE1oV6ajk=";
};
nativeBuildInputs = [
flit-core
nox
];
propagatedBuildInputs = [
cattrs
attrs
];
checkInputs = [
pytest
pyhamcrest
jsonschema
];
checkPhase = ''
runHook preCheck
sed -i "/^ _install_requirements/d" noxfile.py
nox --session tests
runHook postCheck
'';
pythonImportsCheck = [ "lsprotocol" ];
meta = with lib; {
homepage = "https://github.com/microsoft/lsprotocol";
description = "Python implementation of the Language Server Protocol.";
license = licenses.mit;
maintainers = with maintainers; [ doronbehar ];
};
}
+2
View File
@@ -5538,6 +5538,8 @@ self: super: with self; {
lsassy = callPackage ../development/python-modules/lsassy { };
lsprotocol = callPackage ../development/python-modules/lsprotocol { };
luddite = callPackage ../development/python-modules/luddite { };
ludios_wpull = callPackage ../development/python-modules/ludios_wpull { };