Unverified Commit 1cd3a6be authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

pipenv: 2024.2.0 -> 2024.4.0 (#383880)

parents 5092f599 91155d41
Loading
Loading
Loading
Loading
+18 −13
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@
  installShellFiles,
  pipenv,
  runCommand,
  versionCheckHook,
  writableTmpDirAsHomeHook,
}:

with python3.pkgs;
@@ -31,22 +33,24 @@ let
in
buildPythonApplication rec {
  pname = "pipenv";
  version = "2024.2.0";
  format = "pyproject";
  version = "2024.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pypa";
    repo = "pipenv";
    tag = "v${version}";
    hash = "sha256-5gq1kXVNAMH/AeovpUStcZffXN4GfXj3wJ7lW4qebRM=";
    hash = "sha256-SyRkOKZ1q1j37hqdkNkEZI5e/WbBgLL5iglrvT2V5Fs=";
  };

  env.LC_ALL = "en_US.UTF-8";

  build-system = [
    setuptools
  ];

  nativeBuildInputs = [
    installShellFiles
    setuptools
    wheel
  ];

  postPatch = ''
@@ -60,17 +64,17 @@ buildPythonApplication rec {

  propagatedBuildInputs = runtimeDeps python3.pkgs;

  preCheck = ''
    export HOME="$TMPDIR"
  '';

  nativeCheckInputs = [
    mock
    pytestCheckHook
    pytest-xdist
    pytest-cov-stub
    pytz
    requests
    versionCheckHook
    writableTmpDirAsHomeHook
  ];
  versionCheckProgramArg = [ "--version" ];

  disabledTests = [
    # this test wants access to the internet
@@ -103,10 +107,11 @@ buildPythonApplication rec {
      --fish <(_PIPENV_COMPLETE=fish_source $out/bin/pipenv)
  '';

  meta = with lib; {
  meta = {
    description = "Python Development Workflow for Humans";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = with maintainers; [ berdario ];
    license = lib.licenses.mit;
    platforms = lib.platforms.all;
    maintainers = with lib.maintainers; [ berdario ];
    mainProgram = "pipenv";
  };
}