pydantic: fix build failure on Python 3.9
Pydantic tests require additional dependency on old versions of Python to parse new `x | y` syntax. See build logs: https://gist.github.com/PerchunPak/74aaed48223155f22e43dcef493d7c7b
This commit is contained in:
parent
bf6c95a420
commit
9ba392312c
|
@ -23,6 +23,7 @@
|
|||
, faker
|
||||
, pytestCheckHook
|
||||
, pytest-mock
|
||||
, eval-type-backport
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -69,13 +70,16 @@ buildPythonPackage rec {
|
|||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
nativeCheckInputs =
|
||||
[
|
||||
cloudpickle
|
||||
dirty-equals
|
||||
faker
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
|
||||
]
|
||||
++ lib.flatten (lib.attrValues passthru.optional-dependencies)
|
||||
++ lib.optionals (pythonOlder "3.10") [ eval-type-backport ];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
|
|
Loading…
Reference in New Issue
Block a user