python.pkgs.pyls-black: init at 0.2.1
This commit is contained in:
parent
a9c48a0ad3
commit
3ea430ca2a
32
pkgs/development/python-modules/pyls-black/default.nix
Normal file
32
pkgs/development/python-modules/pyls-black/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -11003,10 +11003,12 @@ in {
|
|||||||
|
|
||||||
python-language-server = callPackage ../development/python-modules/python-language-server {};
|
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-isort = callPackage ../development/python-modules/pyls-isort {};
|
||||||
|
|
||||||
|
pyls-mypy = callPackage ../development/python-modules/pyls-mypy {};
|
||||||
|
|
||||||
pyudev = callPackage ../development/python-modules/pyudev {
|
pyudev = callPackage ../development/python-modules/pyudev {
|
||||||
inherit (pkgs) systemd;
|
inherit (pkgs) systemd;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user