mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
python3Packages.essentials: disable broken tests on darwin (#403529)
This commit is contained in:
commit
35dc386904
3 changed files with 23 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
pyyaml,
|
||||
rich,
|
||||
setuptools,
|
||||
stdenv,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "essentials-openapi";
|
||||
|
@ -59,6 +60,13 @@ buildPythonPackage rec {
|
|||
|
||||
pythonImportsCheck = [ "openapidocs" ];
|
||||
|
||||
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# These tests start a server using a hardcoded port, and since
|
||||
# multiple Python versions are always built simultaneously, this
|
||||
# failure is quite likely to occur.
|
||||
"tests/test_cli.py"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/Neoteroi/essentials-openapi";
|
||||
description = "Functions to handle OpenAPI Documentation";
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
fetchFromGitHub,
|
||||
setuptools,
|
||||
pytestCheckHook,
|
||||
stdenv,
|
||||
lib,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
|
@ -21,6 +22,12 @@ buildPythonPackage rec {
|
|||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# time.sleep(0.01) can be up to 0.05s on darwin
|
||||
"test_stopwatch"
|
||||
"test_stopwatch_with_context_manager"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "essentials" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
pytestCheckHook,
|
||||
rich,
|
||||
setuptools,
|
||||
stdenv,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "neoteroi-mkdocs";
|
||||
|
@ -48,6 +49,13 @@ buildPythonPackage rec {
|
|||
|
||||
pythonImportsCheck = [ "neoteroi.mkdocs" ];
|
||||
|
||||
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# These tests start a server using a hardcoded port, and since
|
||||
# multiple Python versions are always built simultaneously, this
|
||||
# failure is quite likely to occur.
|
||||
"tests/test_http.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/Neoteroi/mkdocs-plugins";
|
||||
description = "Plugins for MkDocs";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue