Merge pull request #275996 from r-ryantm/auto-update/python310Packages.python-lsp-black
python310Packages.python-lsp-black: 1.3.0 -> 2.0.0
This commit is contained in:
commit
7080e16510
1 changed files with 21 additions and 6 deletions
|
@ -5,29 +5,44 @@
|
|||
, pytestCheckHook
|
||||
, black
|
||||
, python-lsp-server
|
||||
, toml
|
||||
, setuptools
|
||||
, tomli
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-lsp-black";
|
||||
version = "1.3.0";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
version = "2.0.0";
|
||||
pyproject = true;
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-lsp";
|
||||
repo = "python-lsp-black";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-16HjNB0VfrXLyVa+u5HaFNjq/ER2yXIWokMFsPgejr8=";
|
||||
hash = "sha256-nV6mePSWzfPW2RwXg/mxgzfT9wD95mmTuPnPEro1kEY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
propagatedBuildInputs = [ black python-lsp-server toml ];
|
||||
propagatedBuildInputs = [
|
||||
black
|
||||
python-lsp-server
|
||||
] ++ lib.optionals (pythonOlder "3.11") [
|
||||
tomli
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pylsp_black"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/python-lsp/python-lsp-black";
|
||||
description = "Black plugin for the Python LSP Server";
|
||||
changelog = "https://github.com/python-lsp/python-lsp-black/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ cpcloud ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue