3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyls-black/default.nix

33 lines
714 B
Nix
Raw Normal View History

2018-08-10 13:11:34 +01:00
{ lib, buildPythonPackage, fetchFromGitHub
, black, toml, pytest, python-language-server, isPy3k
}:
buildPythonPackage rec {
pname = "pyls-black";
2018-10-17 00:47:02 +01:00
version = "0.3.0";
2018-08-10 13:11:34 +01:00
src = fetchFromGitHub {
owner = "rupert";
repo = "pyls-black";
rev = "v${version}";
2018-10-17 00:47:02 +01:00
sha256 = "1pagbafb9r9glzy7nbvrq19msjy4wqahrvmc0wll0a0r4msqpi1d";
2018-08-10 13:11:34 +01:00
};
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 ];
};
}