mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Merge pull request #764 from nix-community/overrides-mypy
overrides: fix mypy build
This commit is contained in:
commit
79f8767a83
2 changed files with 10 additions and 9 deletions
|
@ -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.
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue