poetry2nix
poetry2nix copied to clipboard
Wheel no longer added to poetry.lock (upstream change)
See: https://github.com/python-poetry/poetry/issues/3075
And: https://github.com/python-poetry/poetry/commit/b92e68119c8f4a164c4c72081ed8bd3dd9479d2e
This means a lot of the tests will fail to install wheel with the latest version of poetry when the lock files are updated. Locally, it means I have to do a lot of this:
pythonEnv = poetry2nix.mkPoetryEnv {
projectDir = ./.;
preferWheels = true;
overrides = poetry2nix.overrides.withDefaults (self: super: {
fancycompleter = super.fancycompleter.overridePythonAttrs (
old: {
postPatch = '''';
}
);
astunparse = super.astunparse.overridePythonAttrs (
old: {
buildInputs = old.buildInputs ++ [ self.wheel];
});
tensorboard = super.tensorboard.overridePythonAttrs (
old: {
buildInputs = old.buildInputs ++ [ self.wheel];
});
tensorflow = super.tensorflow.overridePythonAttrs (
old: {
buildInputs = old.buildInputs ++ [ self.wheel];
}
);
});
};
Also, apart from that, poetry is failing to resolve a new lock file due to https://github.com/python-poetry/poetry/issues/3367 (upstream)