Merge #296433: python3Packages.{python-lsp-black,pylint}: fix build
...into staging-next
This commit is contained in:
@@ -96,6 +96,8 @@ buildPythonPackage rec {
|
||||
"test_save_and_load_not_a_linter_stats"
|
||||
# Truncated string expectation mismatch
|
||||
"test_truncated_compare"
|
||||
# Probably related to pytest versions, see pylint-dev/pylint#9477 and pylint-dev/pylint#9483
|
||||
"test_functional"
|
||||
# AssertionError: assert [('specializa..., 'Ancestor')] == [('aggregatio..., 'Ancestor')]
|
||||
"test_functional_relation_extraction"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
, python-lsp-server
|
||||
, setuptools
|
||||
, tomli
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -22,6 +23,17 @@ buildPythonPackage rec {
|
||||
hash = "sha256-nV6mePSWzfPW2RwXg/mxgzfT9wD95mmTuPnPEro1kEY=";
|
||||
};
|
||||
|
||||
patches =
|
||||
/** fix test failure with black<24.2.0;
|
||||
remove this patch once python-lsp-black>2.0.0 */
|
||||
lib.optional
|
||||
(with lib; (versionOlder version "2.0.1") && (versionAtLeast black.version "24.2.0"))
|
||||
(fetchpatch {
|
||||
url = "https://patch-diff.githubusercontent.com/raw/python-lsp/python-lsp-black/pull/56.patch";
|
||||
hash = "sha256-38bYU27+xtA8Kq3appXTkNnkG5/XgrUJ2nQ5+yuSU2U=";
|
||||
})
|
||||
++ [ ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user