python3Packages.pyls-black: add patch to fix test

This commit is contained in:
sveitser 2021-05-31 20:33:11 +08:00
parent 0e7ee4d6a0
commit 6f6270d477
No known key found for this signature in database
GPG key ID: 584D5AC88FDC1991

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch
, black, toml, pytest, python-language-server, isPy3k
}:
@ -13,6 +13,15 @@ buildPythonPackage rec {
sha256 = "0cjf0mjn156qp0x6md6mncs31hdpzfim769c2lixaczhyzwywqnj";
};
# 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 = ''