Skip to content

Commit 5154853

Browse files
DavHaumergify[bot]
authored andcommitted
pdm: fix set pyproject = true when building from source
1 parent 667ba5e commit 5154853

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/dream2nix/python-pdm/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ in {
182182
then "wheel"
183183
else null
184184
);
185+
buildPythonPackage.pyproject = lib.mkDefault (
186+
if lib.hasSuffix ".whl" source.file
187+
then null
188+
else true
189+
);
185190
mkDerivation = {
186191
src = lib.mkDefault ((config.deps.fetchPypiLegacy {
187192
pname = name;

0 commit comments

Comments
 (0)