python.pkgs.pyls-black: init at 0.2.1

This commit is contained in:
Jörg Thalheim 2018-08-10 14:11:34 +02:00
parent a9c48a0ad3
commit 3ea430ca2a
2 changed files with 35 additions and 1 deletions

View file

@ -0,0 +1,32 @@
{ lib, buildPythonPackage, fetchFromGitHub
, black, toml, pytest, python-language-server, isPy3k
}:
buildPythonPackage rec {
pname = "pyls-black";
version = "0.2.1";
src = fetchFromGitHub {
owner = "rupert";
repo = "pyls-black";
rev = "v${version}";
sha256 = "0xa3iv8nhnj0lw0dh41qb0dqp55sb6rdxalbk60v8jll6qyc0si8";
};
disabled = !isPy3k;
checkPhase = ''
pytest
'';
checkInputs = [ pytest ];
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 = [ maintainers.mic92 ];
};
}

View file

@ -11003,10 +11003,12 @@ in {
python-language-server = callPackage ../development/python-modules/python-language-server {};
pyls-mypy = callPackage ../development/python-modules/pyls-mypy {};
pyls-black = callPackage ../development/python-modules/pyls-black {};
pyls-isort = callPackage ../development/python-modules/pyls-isort {};
pyls-mypy = callPackage ../development/python-modules/pyls-mypy {};
pyudev = callPackage ../development/python-modules/pyudev {
inherit (pkgs) systemd;
};