defenestrate/final/spyder/python-lsp-black/default.nix

33 lines
724 B
Nix
Raw Normal View History

2022-05-05 19:12:39 +08:00
{ lib
, black
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, python-lsp-server
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-lsp-black";
version = "1.2.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "python-lsp";
repo = "python-lsp-black";
rev = "v${version}";
sha256 = "sha256-qNA6Bj1VI0YEtRuvcMQZGWakQNNrJ2PqhozrLmQHPAg=";
};
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 ];
};
}