Skip to content

Commit

Permalink
python311Packages.mypy_extensions: Skip failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Sep 13, 2022
1 parent baa7e5a commit 6908700
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions pkgs/development/python-modules/mypy/extensions.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
, fetchFromGitHub
, buildPythonPackage
, typing
, unittestCheckHook
, pytestCheckHook
, pythonAtLeast
, pythonOlder
}:

Expand All @@ -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";
Expand Down

0 comments on commit 6908700

Please sign in to comment.