mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 08:41:42 -05:00
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:
parent
799cd0c726
commit
e31b5e4d29
2 changed files with 5 additions and 1 deletions
|
@ -94,7 +94,8 @@ pythonPackages.callPackage
|
||||||
pname = normalizePackageName name;
|
pname = normalizePackageName name;
|
||||||
version = version;
|
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
|
doCheck = false; # We never get development deps
|
||||||
|
|
||||||
|
@ -108,6 +109,7 @@ pythonPackages.callPackage
|
||||||
++ lib.optionals (format == "pyproject") [
|
++ lib.optionals (format == "pyproject") [
|
||||||
pythonPackages.removePathDependenciesHook
|
pythonPackages.removePathDependenciesHook
|
||||||
pythonPackages.removeGitDependenciesHook
|
pythonPackages.removeGitDependenciesHook
|
||||||
|
pythonPackages.pipBuildHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = (
|
buildInputs = (
|
||||||
|
|
|
@ -34,6 +34,8 @@ python.pkgs.buildPythonPackage {
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
dontUseSetuptoolsCheck = true;
|
dontUseSetuptoolsCheck = true;
|
||||||
|
|
||||||
|
format = "poetry2nix";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
${lib.concatStringsSep "\n" (lib.mapAttrsToList mkScript scripts)}
|
${lib.concatStringsSep "\n" (lib.mapAttrsToList mkScript scripts)}
|
||||||
|
|
Loading…
Add table
Reference in a new issue