2021-06-06 07:54:09 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, black
|
|
|
|
, toml
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-language-server
|
|
|
|
, isPy3k
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyls-black";
|
2021-06-06 07:54:09 +00:00
|
|
|
version = "0.4.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rupert";
|
|
|
|
repo = "pyls-black";
|
|
|
|
rev = "v${version}";
|
2021-06-06 07:54:09 +00:00
|
|
|
sha256 = "0bkhfnlik89j3yamr20br4wm8975f20v33wabi2nyxvj10whr5dj";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ black toml python-language-server ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/rupert/pyls-black";
|
|
|
|
description = "Black plugin for the Python Language Server";
|
|
|
|
license = licenses.mit;
|
2021-07-04 02:40:35 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|