2021-07-24 12:14:16 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonOlder
|
2021-07-24 12:14:16 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2022-05-18 14:49:53 +00:00
|
|
|
, black
|
2021-07-24 12:14:16 +00:00
|
|
|
, python-lsp-server
|
2022-05-18 14:49:53 +00:00
|
|
|
, toml
|
2021-07-24 12:14:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-lsp-black";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.3.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-07-24 12:14:16 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-lsp";
|
|
|
|
repo = "python-lsp-black";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-16HjNB0VfrXLyVa+u5HaFNjq/ER2yXIWokMFsPgejr8=";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = [ black python-lsp-server toml ];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/python-lsp/python-lsp-black";
|
|
|
|
description = "Black plugin for the Python LSP Server";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
|
|
};
|
|
|
|
}
|