nixpkgs/pkgs/development/python-modules/pyls-black/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
686 B
Nix
Raw Normal View History

2021-06-05 07:59:46 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, black
, toml
, pytestCheckHook
, python-language-server
, isPy3k
2018-08-10 12:11:34 +00:00
}:
buildPythonPackage rec {
pname = "pyls-black";
version = "0.4.7";
2018-08-10 12:11:34 +00:00
src = fetchFromGitHub {
owner = "rupert";
repo = "pyls-black";
rev = "v${version}";
sha256 = "0bkhfnlik89j3yamr20br4wm8975f20v33wabi2nyxvj10whr5dj";
2018-08-10 12:11:34 +00:00
};
disabled = !isPy3k;
checkInputs = [ pytestCheckHook ];
2018-08-10 12:11:34 +00:00
propagatedBuildInputs = [ black toml python-language-server ];
meta = with lib; {
homepage = "https://github.com/rupert/pyls-black";
2018-08-10 12:11:34 +00:00
description = "Black plugin for the Python Language Server";
license = licenses.mit;
maintainers = [ ];
2018-08-10 12:11:34 +00:00
};
}