Fix mypy dependencies

This commit is contained in:
Nettika 2026-02-14 13:19:40 -08:00
parent 5f14fab320
commit cf19b5725f
No known key found for this signature in database
GPG key ID: C357EE70D5027BCC
5 changed files with 76 additions and 10 deletions

View file

@ -14,13 +14,16 @@
which,
time,
readline,
# Python dependencies for mycpp
mypy-extensions ? callPackage ./mypy-extensions-0.4.4.nix { python3 = python310; },
typed-ast ? callPackage ./typed-ast-1.5.5.nix { python3 = python310; },
mypy-for-mycpp ? callPackage ./mypy-0.780.nix {
python3 = python310;
inherit mypy-extensions typed-ast;
},
}:
let
# mypy 0.780 is the last version with --py2 support
# built without mypyc so mycpp can extend its classes
mypy-for-mycpp = callPackage ./mypy-0.780.nix { python3 = python310; };
python = python310.withPackages (ps: [
mypy-for-mycpp
ps.typing-extensions