Closed martijnbastiaan closed 3 months ago
Turns out, this:
overrides = poetry2nix.overrides.withDefaults (final: prev: {
zipfile2 = [ "setuptools" ];
jsonschema2md = [ "poetry-core" ];
okonomiyaki = [ "setuptools" ];
simplesat = [ "setuptools" ];
fusesoc = [ "setuptools" ];
});
should have looked like this:
overrides = poetry2nix.overrides.withDefaults (self: super: {
zipfile2 = super.zipfile2.overridePythonAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.setuptools ];
});
jsonschema2md = super.jsonschema2md.overridePythonAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.poetry-core ];
});
okonomiyaki = super.okonomiyaki.overridePythonAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.setuptools ];
});
simplesat = super.simplesat.overridePythonAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.setuptools ];
});
fusesoc = super.fusesoc.overridePythonAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.setuptools self.setuptools-scm ];
});
Rather puzzlingly, the package
fusesoc
is not importable, nor are its binaries available after usingmkPoetryEnv
.How to reproduce
Observe that
cocotb-config
is onPATH
, butfusesoc
isn't.I'm very puzzled by this, at the surface their
setup.py
s don't look that different:PS: I'll contribute the setuptools/poetry-core overrides after I've got everything working :)
Observations
If I look in
poetry.lock
, I see all (?) dependencies mention at least one.whl
with the sole exception beingfusesoc
, which just mentions:Additional context
shell.nix
:pyproject.toml
:poetry.lock
: