Merge pull request #764 from nix-community/overrides-mypy

overrides: fix mypy build
This commit is contained in:
adisbladis 2022-10-11 15:26:14 +13:00 committed by GitHub
commit 79f8767a83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View file

@ -1200,6 +1200,7 @@ lib.composeManyExtensions [
old: {
buildInputs = (old.buildInputs or [ ]) ++ [
self.types-typed-ast
self.types-setuptools
];
# Compile mypy with mypyc, which makes mypy about 4 times faster. The compiled
# version is also the default in the wheels on Pypi that include binaries.

View file

@ -103,15 +103,15 @@ builtins.removeAttrs
# Test building poetry
inherit poetry;
# Temporarily disabled because of mypy 0.982
# poetry-env =
# let
# env = poetry2nix.mkPoetryEnv { projectDir = ../pkgs/poetry; };
# in
# pkgs.runCommand "poetry-env-test" { } ''
# ${env}/bin/python -c 'import requests'
# touch $out
# '';
poetry-env =
let
env = poetry2nix.mkPoetryEnv { projectDir = ../pkgs/poetry; };
in
pkgs.runCommand "poetry-env-test" { } ''
${env}/bin/python -c 'import requests'
${env}/bin/python -c 'import mypy'
touch $out
'';
dependency-groups = callTest ./dependency-groups { };