at 22.05-pre 34 lines 686 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, black 5, toml 6, pytestCheckHook 7, python-language-server 8, isPy3k 9}: 10 11buildPythonPackage rec { 12 pname = "pyls-black"; 13 version = "0.4.7"; 14 15 src = fetchFromGitHub { 16 owner = "rupert"; 17 repo = "pyls-black"; 18 rev = "v${version}"; 19 sha256 = "0bkhfnlik89j3yamr20br4wm8975f20v33wabi2nyxvj10whr5dj"; 20 }; 21 22 disabled = !isPy3k; 23 24 checkInputs = [ pytestCheckHook ]; 25 26 propagatedBuildInputs = [ black toml python-language-server ]; 27 28 meta = with lib; { 29 homepage = "https://github.com/rupert/pyls-black"; 30 description = "Black plugin for the Python Language Server"; 31 license = licenses.mit; 32 maintainers = [ ]; 33 }; 34}