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`.
This commit is contained in:
parent
99b5c0bcbe
commit
9581a08739
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ with python3.pkgs;
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
runtimeDeps = [
|
runtimeDeps = ps: with ps; [
|
||||||
certifi
|
certifi
|
||||||
setuptools
|
setuptools
|
||||||
pip
|
pip
|
||||||
|
@ -14,7 +14,7 @@ let
|
||||||
virtualenv-clone
|
virtualenv-clone
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonEnv = python3.withPackages(ps: with ps; runtimeDeps);
|
pythonEnv = python3.withPackages runtimeDeps;
|
||||||
|
|
||||||
in buildPythonApplication rec {
|
in buildPythonApplication rec {
|
||||||
pname = "pipenv";
|
pname = "pipenv";
|
||||||
|
@ -36,7 +36,7 @@ in buildPythonApplication rec {
|
||||||
--replace "sys.executable" "'${pythonEnv.interpreter}'"
|
--replace "sys.executable" "'${pythonEnv.interpreter}'"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = runtimeDeps;
|
propagatedBuildInputs = runtimeDeps python3.pkgs;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
|
Loading…
Reference in a new issue