git.iko.soy/typeable/nixpkgs
on master help sign in
pipenv: refactor runtimeDeps

Make `runtimeDeps` a function, so that it will return a selection of the packages in the set passed to it by `python3.withPackages`, rather than the same packages taken directly from `python3.pkgs`.

commit9581a0873980edfb5320351f14ee3ce3b8914138 authorRaphael Borun Das Gupta <git@raphael.dasgupta.ch> dateSun 31 May 2020, 20:35 (6 years ago) parent99b5c0b
1 file changed+3−3
pkgs/development/tools/pipenv/default.nix+3−3
pkgs/development/tools/pipenv/default.nix+3−3
@@ -6,7 +6,7 @@ with python3.pkgs;
66
77let
88
9− runtimeDeps = [
9+ runtimeDeps = ps: with ps; [
1010 certifi
1111 setuptools
1212 pip
@@ -14,7 +14,7 @@ let
1414 virtualenv-clone
1515 ];
1616
17− pythonEnv = python3.withPackages(ps: with ps; runtimeDeps);
17+ pythonEnv = python3.withPackages runtimeDeps;
1818
1919in buildPythonApplication rec {
2020 pname = "pipenv";
@@ -36,7 +36,7 @@ in buildPythonApplication rec {
3636 --replace "sys.executable" "'${pythonEnv.interpreter}'"
3737 '';
3838
39− propagatedBuildInputs = runtimeDeps;
39+ propagatedBuildInputs = runtimeDeps python3.pkgs;
4040
4141 doCheck = true;
4242 checkPhase = ''