depot/third_party/nixpkgs/pkgs/development/python-modules/pyls-black/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

32 lines
716 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub
, black, toml, pytest, python-language-server, isPy3k
}:
buildPythonPackage rec {
pname = "pyls-black";
version = "0.4.6";
src = fetchFromGitHub {
owner = "rupert";
repo = "pyls-black";
rev = "v${version}";
sha256 = "0cjf0mjn156qp0x6md6mncs31hdpzfim769c2lixaczhyzwywqnj";
};
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 ];
};
}