mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
python311Packages.mypy_extensions: Skip failing test
This commit is contained in:
parent
baa7e5a6d5
commit
690870048a
@ -2,7 +2,8 @@
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, typing
|
||||
, unittestCheckHook
|
||||
, pytestCheckHook
|
||||
, pythonAtLeast
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
@ -19,11 +20,23 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = lib.optional (pythonOlder "3.5") typing;
|
||||
|
||||
checkInputs = [ unittestCheckHook ];
|
||||
# make the testsuite run with pytest, so we can disable individual tests
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
unittestFlagsArray = [ "tests" ];
|
||||
pytestFlagsArray = [
|
||||
"tests/testextensions.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "mypy_extensions" ];
|
||||
disabledTests = lib.optionals (pythonAtLeast "3.11") [
|
||||
# https://github.com/python/mypy_extensions/issues/24
|
||||
"test_typeddict_errors"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"mypy_extensions"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Experimental type system extensions for programs checked with the mypy typechecker";
|
||||
|
Loading…
Reference in New Issue
Block a user