python3Packages.metar: patch flaky test

This commit is contained in:
Martin Weinelt 2022-03-06 16:55:09 +01:00
parent da856f86b1
commit ac3b97e4fb

View file

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
}:
@ -15,6 +16,14 @@ buildPythonPackage rec {
sha256 = "sha256-pl2NWRfFCYyM2qvBt4Ic3wgbGkYZvAO6pX2Set8zYW8=";
};
patches = [
(fetchpatch {
# Fix flapping test; https://github.com/python-metar/python-metar/issues/161
url = "https://github.com/python-metar/python-metar/commit/716fa76682e6c2936643d1cf62e3d302ef29aedd.patch";
hash = "sha256-y82NN+KDryOiH+eG+2ycXCO9lqQLsah4+YpGn6lM2As=";
})
];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "metar" ];