mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Use the canonical name setuptools-scm
Nixpkgs calls this setuptools_scm which is a mismatch for pypi. Create an alias so any setuptools-scm installed by a user impacts all packages.
This commit is contained in:
parent
0ec54e142b
commit
2caffda3ef
2 changed files with 3 additions and 1 deletions
|
@ -91,6 +91,8 @@ let
|
|||
inherit pkgs lib python poetryLib;
|
||||
};
|
||||
poetry = poetryPkg;
|
||||
# The canonical name is setuptools-scm
|
||||
setuptools-scm = super.setuptools_scm;
|
||||
}
|
||||
)
|
||||
# Null out any filtered packages, we don't want python.pkgs from nixpkgs
|
||||
|
|
|
@ -83,7 +83,7 @@ pythonPackages.callPackage (
|
|||
else (builtins.elemAt (lib.strings.splitString "-" name) 2);
|
||||
};
|
||||
|
||||
baseBuildInputs = lib.optional (name != "setuptools_scm" && name != "setuptools-scm") pythonPackages.setuptools_scm;
|
||||
baseBuildInputs = lib.optional (name != "setuptools_scm" && name != "setuptools-scm") pythonPackages.setuptools-scm;
|
||||
|
||||
format = if isLocal then "pyproject" else if isGit then "setuptools" else fileInfo.format;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue