My personal project and infrastructure archive
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, black
|
|
|
|
, toml
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-language-server
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyls-black";
|
|
|
|
version = "0.4.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rupert";
|
|
|
|
repo = "pyls-black";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0bkhfnlik89j3yamr20br4wm8975f20v33wabi2nyxvj10whr5dj";
|
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
}
|