Skip to content

Commit

Permalink
Enable building python reuse from source
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoflow committed Sep 18, 2024
1 parent b76c529 commit 8b25e76
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions overrides/python/reuse/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
}

0 comments on commit 8b25e76

Please sign in to comment.