12 runtimeDeps = ps: with ps; [
19 ++ lib.optionals stdenv.hostPlatform.isAndroid [
23 pythonEnv = python3.withPackages runtimeDeps;
25 in buildPythonApplication rec {
30 src = fetchFromGitHub {
33 rev = "refs/tags/v${version}";
34 hash = "sha256-jZOBu4mWyu8U6CGqtYgfcCCDSa0pGqoZEFnXl5IO+JY=";
37 env.LC_ALL = "en_US.UTF-8";
46 # pipenv invokes python in a subprocess to create a virtualenv
47 # and to call setup.py.
48 # It would use sys.executable, which in our case points to a python that
49 # does not have the required dependencies.
50 substituteInPlace pipenv/core.py \
51 --replace "sys.executable" "'${pythonEnv.interpreter}'"
54 propagatedBuildInputs = runtimeDeps python3.pkgs;
69 "test_convert_deps_to_pip"
78 installShellCompletion --cmd pipenv \
79 --bash <(_PIPENV_COMPLETE=bash_source $out/bin/pipenv) \
80 --zsh <(_PIPENV_COMPLETE=zsh_source $out/bin/pipenv) \
81 --fish <(_PIPENV_COMPLETE=fish_source $out/bin/pipenv)
85 description = "Python Development Workflow for Humans";
86 license = licenses.mit;
87 platforms = platforms.all;
88 maintainers = with maintainers; [ berdario ];