Merge pull request #125759 from sveitser/pyls-black-v0.4.7
python3Packages.pyls-black: 0.4.6 -> 0.4.7
This commit is contained in:
commit
2b50f84188
@ -1,34 +1,27 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch
|
||||
, black, toml, pytest, python-language-server, isPy3k
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, black
|
||||
, toml
|
||||
, pytestCheckHook
|
||||
, python-language-server
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyls-black";
|
||||
version = "0.4.6";
|
||||
version = "0.4.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rupert";
|
||||
repo = "pyls-black";
|
||||
rev = "v${version}";
|
||||
sha256 = "0cjf0mjn156qp0x6md6mncs31hdpzfim769c2lixaczhyzwywqnj";
|
||||
sha256 = "0bkhfnlik89j3yamr20br4wm8975f20v33wabi2nyxvj10whr5dj";
|
||||
};
|
||||
|
||||
# Fix test failure with black 21.4b0+
|
||||
# Remove if https://github.com/rupert/pyls-black/pull/39 merged.
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/rupert/pyls-black/commit/728207b540d9c25eb0d1cd96419ebfda2e257f63.patch";
|
||||
sha256 = "0i3w5myhjl5lq1lpkizagnmk6m8fkn3igfyv5f2qcrn5n7f119ak";
|
||||
})
|
||||
];
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
propagatedBuildInputs = [ black toml python-language-server ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user