mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-08-17 02:10:31 +03:00
Merge pull request #998 from abathur/pdm_static_urls
pdm: support additional index/source URLs
This commit is contained in:
commit
a9c8595b3f
@ -192,12 +192,15 @@ in {
|
||||
else null
|
||||
);
|
||||
mkDerivation = {
|
||||
# TODO: handle sources outside pypi.org
|
||||
src = lib.mkDefault (libpyproject-fetchers.fetchFromLegacy {
|
||||
pname = name;
|
||||
file = source.file;
|
||||
hash = source.hash;
|
||||
url = "https://pypi.org/simple";
|
||||
urls =
|
||||
[
|
||||
"https://pypi.org/simple"
|
||||
]
|
||||
++ lib.optionals (lib.hasAttrByPath ["tool" "pdm" "source"] pyproject.pyproject) (builtins.map (source: source.url) pyproject.pyproject.tool.pdm.source);
|
||||
});
|
||||
propagatedBuildInputs =
|
||||
lib.mapAttrsToList
|
||||
|
Loading…
Reference in New Issue
Block a user