-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145372 from doronbehar/pkg/jedi-lanugage-server
- Loading branch information
Showing
4 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
pkgs/development/python-modules/docstring-to-markdown/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, pytestCheckHook | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "docstring-to-markdown"; | ||
version = "0.9"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "python-lsp"; | ||
repo = pname; | ||
rev = "v${version}"; | ||
sha256 = "sha256-XVTlSqqWmvnB5nvjvgGDJmg71KKTq2hHB4//QW7ugvA="; | ||
}; | ||
|
||
patches = [ | ||
# So pytest-flake8 and pytest-cov won't be needed | ||
./remove-coverage-tests.patch | ||
]; | ||
|
||
checkInputs = [ | ||
pytestCheckHook | ||
]; | ||
|
||
pythonImportsCheck = [ | ||
"docstring_to_markdown" | ||
]; | ||
|
||
meta = with lib; { | ||
homepage = "https://github.com/python-lsp/docstring-to-markdown"; | ||
description = "On the fly conversion of Python docstrings to markdown"; | ||
license = licenses.lgpl2Plus; | ||
maintainers = with maintainers; [ doronbehar ]; | ||
}; | ||
} |
16 changes: 16 additions & 0 deletions
16
pkgs/development/python-modules/docstring-to-markdown/remove-coverage-tests.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git i/setup.cfg w/setup.cfg | ||
index e880e74..e77133e 100644 | ||
--- i/setup.cfg | ||
+++ w/setup.cfg | ||
@@ -34,11 +34,7 @@ docstring-to-markdown = py.typed | ||
[tool:pytest] | ||
addopts = | ||
--pyargs tests | ||
- --cov docstring_to_markdown | ||
- --cov-fail-under=98 | ||
- --cov-report term-missing:skip-covered | ||
-p no:warnings | ||
- --flake8 | ||
-vv | ||
|
||
[flake8] |
56 changes: 56 additions & 0 deletions
56
pkgs/development/python-modules/jedi-language-server/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, fetchFromGitHub | ||
, poetry | ||
, docstring-to-markdown | ||
, jedi | ||
, pygls | ||
, pytestCheckHook | ||
, pyhamcrest | ||
, python-jsonrpc-server | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "jedi-language-server"; | ||
version = "0.34.8"; | ||
format = "pyproject"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "pappasam"; | ||
repo = pname; | ||
rev = "v${version}"; | ||
sha256 = "sha256-mJGgDDjPZXde4M4OHwj81KYoaFXFAwOZ+v18YE+arFE="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
poetry | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
docstring-to-markdown | ||
jedi | ||
pygls | ||
]; | ||
|
||
checkInputs = [ | ||
pytestCheckHook | ||
pyhamcrest | ||
python-jsonrpc-server | ||
]; | ||
|
||
preCheck = '' | ||
HOME="$(mktemp -d)" | ||
''; | ||
|
||
pythonImportsCheck = [ | ||
"jedi_language_server" | ||
]; | ||
|
||
meta = with lib; { | ||
homepage = "https://github.com/pappasam/jedi-language-server"; | ||
description = "A Language Server for the latest version(s) of Jedi"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ doronbehar ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters