mk-poetry-dep: prevent use of output separation

this doesn't work in a lot of cases and I don't see the point for us
to have the split output behaviour.
This commit is contained in:
adisbladis 2022-10-07 21:37:53 +13:00
parent 799cd0c726
commit e31b5e4d29
2 changed files with 5 additions and 1 deletions

View file

@ -94,7 +94,8 @@ pythonPackages.callPackage
pname = normalizePackageName name;
version = version;
inherit format;
# Circumvent output separation (https://github.com/NixOS/nixpkgs/pull/190487)
format = if format == "pyproject" then "poetry2nix" else format;
doCheck = false; # We never get development deps
@ -108,6 +109,7 @@ pythonPackages.callPackage
++ lib.optionals (format == "pyproject") [
pythonPackages.removePathDependenciesHook
pythonPackages.removeGitDependenciesHook
pythonPackages.pipBuildHook
];
buildInputs = (

View file

@ -34,6 +34,8 @@ python.pkgs.buildPythonPackage {
dontConfigure = true;
dontUseSetuptoolsCheck = true;
format = "poetry2nix";
installPhase = ''
mkdir -p $out/bin
${lib.concatStringsSep "\n" (lib.mapAttrsToList mkScript scripts)}