mcp-nixos: apply patch to fix flaky test
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
python3Packages,
|
||||
}:
|
||||
|
||||
@@ -17,6 +17,13 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
hash = "sha256-mWq9nnL4IGhUFkXJr8+t6BresOTDFS1caG8NuFqjrJg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/utensils/mcp-nixos/commit/0ef99b6a5674e60ca315dc55a0f458673bb1e4fa.patch";
|
||||
sha256 = "sha256-f57qS6V8mSv2kLKiudSG2enAofeUZwKvjfdowmGRIxw=";
|
||||
})
|
||||
];
|
||||
|
||||
build-system = [ python3Packages.hatchling ];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
@@ -40,9 +47,6 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
disabledTests = [
|
||||
# Requires network access
|
||||
"test_valid_channel"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"test_read_text_file"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "mcp_nixos" ];
|
||||
|
||||
Reference in New Issue
Block a user