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 authored and DavHau committed Nov 18, 2024
1 parent 607c990 commit e118d69
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 e118d69

Please sign in to comment.