python311Packages.in-n-out: disable failing tests on Python 3.11

This commit is contained in:
Fabian Affolter 2023-02-24 22:20:55 +01:00
parent 24d0a228a0
commit 92863b70b9

View File

@ -4,9 +4,11 @@
, fetchPypi
, future
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, setuptools
, setuptools-scm
, toolz
}:
buildPythonPackage rec {
@ -33,12 +35,21 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
toolz
];
pythonImportsCheck = [
"in_n_out"
];
disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [
# Fatal Python error
"tests/test_injection.py"
"tests/test_processors.py"
"tests/test_providers.py"
"tests/test_store.py"
];
meta = with lib; {
description = "Module for dependency injection and result processing";
homepage = "https://app-model.readthedocs.io/";