python310Packages.poetry-plugin-export: move to poetryPlugins
This commit is contained in:
parent
7c231bd5e8
commit
e7e3cd85ce
3 changed files with 7 additions and 7 deletions
|
@ -41,18 +41,19 @@ let
|
|||
hash = "sha256-GpZ0vMByHTu5kl7KrrFFK2aZMmkNO7xOEc8NI2H9k34=";
|
||||
};
|
||||
});
|
||||
};
|
||||
} // (plugins self);
|
||||
};
|
||||
|
||||
plugins = with python.pkgs; {
|
||||
plugins = ps: with ps; {
|
||||
poetry-audit-plugin = callPackage ./plugins/poetry-audit-plugin.nix { };
|
||||
poetry-plugin-export = callPackage ./plugins/poetry-plugin-export.nix { };
|
||||
poetry-plugin-up = callPackage ./plugins/poetry-plugin-up.nix { };
|
||||
};
|
||||
|
||||
# selector is a function mapping pythonPackages to a list of plugins
|
||||
# e.g. poetry.withPlugins (ps: with ps; [ poetry-plugin-up ])
|
||||
withPlugins = selector: let
|
||||
selected = selector plugins;
|
||||
selected = selector (plugins python.pkgs);
|
||||
in python.pkgs.toPythonApplication (python.pkgs.poetry.overridePythonAttrs (old: {
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ selected;
|
||||
|
||||
|
@ -65,8 +66,9 @@ let
|
|||
rm $out/nix-support/propagated-build-inputs
|
||||
'';
|
||||
|
||||
passthru = rec {
|
||||
inherit plugins withPlugins python;
|
||||
passthru = {
|
||||
plugins = plugins python.pkgs;
|
||||
inherit withPlugins python;
|
||||
};
|
||||
}));
|
||||
in withPlugins (ps: [ ])
|
||||
|
|
|
@ -8103,8 +8103,6 @@ self: super: with self; {
|
|||
|
||||
poetry-dynamic-versioning = callPackage ../development/python-modules/poetry-dynamic-versioning { };
|
||||
|
||||
poetry-plugin-export = callPackage ../development/python-modules/poetry-plugin-export { };
|
||||
|
||||
poetry-semver = callPackage ../development/python-modules/poetry-semver { };
|
||||
|
||||
poezio = callPackage ../applications/networking/instant-messengers/poezio { };
|
||||
|
|
Loading…
Reference in a new issue