{ prev, sources, ... }: { postfix-mta-sts-resolver = with prev.poetry2nix; mkPoetryApplication { python = prev.python311; inherit (sources.postfix-mta-sts-resolver) pname version; overrides = overrides.withDefaults (self: super: { pyyaml = super.pyyaml.override { preferWheel = true; }; }); projectDir = cleanPythonSources { src = prev.runCommand "sources" {} '' mkdir $out cp -r ${sources.postfix-mta-sts-resolver.src}/. $out cp ${./pyproject.toml} $out/pyproject.toml cp ${./poetry.lock} $out/poetry.lock ''; }; }; }