81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
32 lines
724 B
Nix
32 lines
724 B
Nix
{ lib
|
|
, black
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, python-lsp-server
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-lsp-black";
|
|
version = "1.1.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-lsp";
|
|
repo = "python-lsp-black";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-WIQf1oz3b1PLIcXfQsu4hQ58nfp7l3J7zkcWNT6RbUY=";
|
|
};
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
propagatedBuildInputs = [ black python-lsp-server ];
|
|
|
|
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 ];
|
|
};
|
|
}
|