2018-08-10 13:11:34 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
|
|
|
, black, toml, pytest, python-language-server, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyls-black";
|
2019-04-03 15:05:43 +01:00
|
|
|
version = "0.4.4";
|
2018-08-10 13:11:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rupert";
|
|
|
|
repo = "pyls-black";
|
|
|
|
rev = "v${version}";
|
2019-04-03 15:05:43 +01:00
|
|
|
sha256 = "1ynynay9g6yma39szbzf15ypq3c72fg1i0kjmq1dwxarj68i2gf9";
|
2018-08-10 13:11:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ black toml python-language-server ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/rupert/pyls-black";
|
2018-08-10 13:11:34 +01:00
|
|
|
description = "Black plugin for the Python Language Server";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|