10 buildPythonPackage rec {
11 pname = "mypy-extensions";
14 src = fetchFromGitHub {
16 repo = "mypy_extensions";
18 hash = "sha256-gOfHC6dUeBE7SsWItpUHHIxW3wzhPM5SuGW1U8P7DD0=";
21 propagatedBuildInputs = lib.optional (pythonOlder "3.5") typing;
23 # make the testsuite run with pytest, so we can disable individual tests
29 "tests/testextensions.py"
32 disabledTests = lib.optionals (pythonAtLeast "3.11") [
33 # https://github.com/python/mypy_extensions/issues/24
34 "test_typeddict_errors"
37 pythonImportsCheck = [
42 description = "Experimental type system extensions for programs checked with the mypy typechecker";
43 homepage = "https://www.mypy-lang.org";
44 license = licenses.mit;
45 maintainers = with maintainers; [ lnl7 ];