depot/third_party/nixpkgs/pkgs/development/python-modules/pyls-black/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

32 lines
716 B
Nix

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