1{ lib 2, pythonOlder 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, black 7, python-lsp-server 8, toml 9}: 10 11buildPythonPackage rec { 12 pname = "python-lsp-black"; 13 version = "1.3.0"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "python-lsp"; 18 repo = "python-lsp-black"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-16HjNB0VfrXLyVa+u5HaFNjq/ER2yXIWokMFsPgejr8="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 propagatedBuildInputs = [ black python-lsp-server toml ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/python-lsp/python-lsp-black"; 29 description = "Black plugin for the Python LSP Server"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ cpcloud ]; 32 }; 33}