python: Add support for installing Python eggs

This commit is contained in:
adisbladis
2020-01-08 13:29:03 +00:00
parent 380220c237
commit 2d6f1ff4dd
7 changed files with 83 additions and 1 deletions

View File

@@ -11,6 +11,27 @@ let
setuppy = ../run_setup.py;
in rec {
eggBuildHook = callPackage ({ }:
makeSetupHook {
name = "egg-build-hook.sh";
deps = [ ];
} ./egg-build-hook.sh) {};
eggInstallHook = callPackage ({ setuptools }:
makeSetupHook {
name = "egg-install-hook.sh";
deps = [ setuptools ];
substitutions = {
inherit pythonInterpreter pythonSitePackages;
};
} ./egg-install-hook.sh) {};
eggUnpackHook = callPackage ({ }:
makeSetupHook {
name = "egg-unpack-hook.sh";
deps = [ ];
} ./egg-unpack-hook.sh) {};
flitBuildHook = callPackage ({ flit }:
makeSetupHook {
name = "flit-build-hook";