forked from mirrors/nixpkgs
Merge pull request #183695 from lilyinstarlight/fix/oscpy-flaky-tests
pythonPackages.oscpy: fix flaky tests
This commit is contained in:
commit
9b6411cf6e
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook }:
|
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pytestCheckHook }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "oscpy";
|
pname = "oscpy";
|
||||||
|
@ -11,6 +11,15 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-Luj36JLgU9xbBMydeobyf98U5zs5VwWQOPGV7TPXQwA=";
|
hash = "sha256-Luj36JLgU9xbBMydeobyf98U5zs5VwWQOPGV7TPXQwA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix flaky tests with kivy/oscpy#67 - https://github.com/kivy/oscpy/pull/67
|
||||||
|
(fetchpatch {
|
||||||
|
name = "improve-reliability-of-test_intercept_errors.patch";
|
||||||
|
url = "https://github.com/kivy/oscpy/commit/2bc114a97692aef28f8b84d52d0d5a41554a7d93.patch";
|
||||||
|
hash = "sha256-iT7cB3ChWD1o0Zx7//Czkk8TaU1oTU1pRQWvPeIpeWY=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
pythonImportsCheck = [ "oscpy" ];
|
pythonImportsCheck = [ "oscpy" ];
|
||||||
|
|
Loading…
Reference in a new issue