diff --git a/overrides/python/reuse/default.nix b/overrides/python/reuse/default.nix new file mode 100644 index 00000000..ef29cc0e --- /dev/null +++ b/overrides/python/reuse/default.nix @@ -0,0 +1,12 @@ +{ + config, + lib, + dream2nix, + ... +}: let + isSdist = lib.hasSuffix ".tar.gz" config.mkDerivation.src; + python = config.deps.python; +in { + buildPythonPackage.pyproject = lib.mkIf isSdist true; + mkDerivation.nativeBuildInputs = lib.mkIf isSdist [python.pkgs.poetry-core]; +}