pip: allow git+ssh dependencies

This commit is contained in:
Vincent Vanlaer 2024-01-22 11:02:04 +01:00 committed by DavHau
parent 774019d486
commit eb3b7028d5
2 changed files with 3 additions and 2 deletions

View File

@ -135,7 +135,7 @@ in {
inherit (cfg) env pypiSnapshotDate pipFlags pipVersion requirementsList requirementsFiles nativeBuildInputs; inherit (cfg) env pypiSnapshotDate pipFlags pipVersion requirementsList requirementsFiles nativeBuildInputs;
inherit (config.deps) writePureShellScript nix; inherit (config.deps) writePureShellScript nix;
inherit (config.paths) findRoot; inherit (config.paths) findRoot;
inherit (nixpkgs) gitMinimal nix-prefetch-scripts python3 writeText; inherit (nixpkgs) gitMinimal nix-prefetch-scripts python3 writeText openssh;
pythonInterpreter = "${python}/bin/python"; pythonInterpreter = "${python}/bin/python";
}; };
setuptools = config.deps.python.pkgs.setuptools; setuptools = config.deps.python.pkgs.setuptools;

View File

@ -42,6 +42,7 @@
gitMinimal, gitMinimal,
writePureShellScript, writePureShellScript,
nix-prefetch-scripts, nix-prefetch-scripts,
openssh,
}: let }: let
package = import ./package.nix { package = import ./package.nix {
inherit inherit
@ -57,7 +58,7 @@
python3.withPackages python3.withPackages
(ps: [ps.mitmproxy ps.python-dateutil]); (ps: [ps.mitmproxy ps.python-dateutil]);
path = [nix gitMinimal] ++ nativeBuildInputs; path = [nix gitMinimal openssh] ++ nativeBuildInputs;
args = writeText "pip-args" (builtins.toJSON { args = writeText "pip-args" (builtins.toJSON {
filterPypiResponsesScript = ./filter-pypi-responses.py; filterPypiResponsesScript = ./filter-pypi-responses.py;