mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
pipenv: 2018.11.26 -> 2020.5.28
This commit is contained in:
parent
55e7f95265
commit
5e8e887e0e
@ -14,29 +14,28 @@ let
|
|||||||
virtualenv-clone
|
virtualenv-clone
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonEnv = python3.withPackages(ps: with ps; [ virtualenv ]);
|
pythonEnv = python3.withPackages(ps: with ps; runtimeDeps);
|
||||||
|
|
||||||
in buildPythonApplication rec {
|
in buildPythonApplication rec {
|
||||||
pname = "pipenv";
|
pname = "pipenv";
|
||||||
version = "2018.11.26";
|
version = "2020.5.28";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0ip8zsrwmhrankrix0shig9g8q2knmr7b63sh7lqa8a5x03fcwx6";
|
sha256 = "072lc4nywcf9q9irvanwcz7w0sd9dcyannz208jm6glyj8a271l1";
|
||||||
};
|
};
|
||||||
|
|
||||||
LC_ALL = "en_US.UTF-8";
|
LC_ALL = "en_US.UTF-8";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# pipenv invokes python in a subprocess to create a virtualenv
|
# pipenv invokes python in a subprocess to create a virtualenv
|
||||||
# it uses sys.executable which will point in our case to a python that
|
# and to call setup.py.
|
||||||
# does not have virtualenv.
|
# It would use sys.executable, which in our case points to a python that
|
||||||
|
# does not have the required dependencies.
|
||||||
substituteInPlace pipenv/core.py \
|
substituteInPlace pipenv/core.py \
|
||||||
--replace "vistir.compat.Path(sys.executable).absolute().as_posix()" "vistir.compat.Path('${pythonEnv.interpreter}').absolute().as_posix()"
|
--replace "sys.executable" "'${pythonEnv.interpreter}'"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ invoke parver ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = runtimeDeps;
|
propagatedBuildInputs = runtimeDeps;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user