Skip to content

Commit

Permalink
Use build packages in setup hook
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Nov 26, 2020
1 parent 4523826 commit 98e0220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hooks/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ python
, callPackage
, makeSetupHook
, yj
, wheel
, pip
}:
let
callPackage = python.pythonForBuild.pkgs.callPackage;
pythonInterpreter = python.pythonForBuild.interpreter;
pythonSitePackages = python.sitePackages;
in
Expand Down
5 changes: 1 addition & 4 deletions mk-poetry-dep.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ pythonPackages.callPackage
"setuptools-scm"
"toml" # Toml is an extra for setuptools-scm
];
baseBuildInputs =
lib.optional (! lib.elem name skipSetupToolsSCM) pythonPackages.setuptools-scm
++ lib.optional (! lib.elem name [ "pip" "setuptools" "wheel" ]) pythonPackages.wheel
;
baseBuildInputs = lib.optional (! lib.elem name skipSetupToolsSCM) pythonPackages.setuptools-scm;
format = if isLocal || isGit || isUrl then "pyproject" else fileInfo.format;
in
buildPythonPackage {
Expand Down

0 comments on commit 98e0220

Please sign in to comment.