Skip to content

Conversation

@lionello
Copy link

@lionello lionello commented Sep 26, 2021

nix-shell failed with Nixpkgs from unstable channel (nixpkgs-21.11pre317460.a54d2e72e28) because of an error with mypy v0.770:

Processing /private/tmp/nix-build-python3.9-mypy-0.770.drv-0/mypy-0.770
  Created temporary directory: /private/tmp/nix-build-python3.9-mypy-0.770.drv-0/pip-req-build-crybcke8
  Added file:///private/tmp/nix-build-python3.9-mypy-0.770.drv-0/mypy-0.770 to build tracker '/private/tmp/nix-build-python3.9-mypy-0.770.drv-0/pip-req-tracker-2damr_g5'
    Running setup.py (path:/private/tmp/nix-build-python3.9-mypy-0.770.drv-0/pip-req-build-crybcke8/setup.py) egg_info for package from file:///private/tmp/nix-build-python3.9-mypy-0.770.drv-0/mypy-0.770
    Created temporary directory: /private/tmp/nix-build-python3.9-mypy-0.770.drv-0/pip-pip-egg-info-a_g10rel
    Running command python setup.py egg_info
    mypy/api.py:52: error: syntax error in type comment
    mypy/api.py:66: error: syntax error in type comment
    mypy/api.py:73: error: syntax error in type comment
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

This PR relaxes the version of mypy, since "^0.770" practically pins it to v0.770 and won't allow any other version. (Poetry treats any 0.x as a breaking change so will never bump a minor version below v1.)

Similarly, v0.910 failed to build because of an error similar to nix-community/poetry2nix#323 so adding constraint to <v0.900.

@lionello
Copy link
Author

lionello commented Oct 25, 2021

I don't know why the CI fails with invalid Git revision 'master'. Don't know how that's related to mypy :( @adisbladis Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant