diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-08-26 09:19:25 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-08-26 09:19:25 +0000 |
commit | 55abc327b49b4097e48c916e40803caa8cf46e8f (patch) | |
tree | 1c0420ab3fb21d9485460b912f1c3eae18781871 /nixpkgs/pkgs/development/tools/pipenv | |
parent | 7936cf821dccc1eaade44b852db09d03fae8e5f3 (diff) | |
parent | 18324978d632ffc55ef1d928e81630c620f4f447 (diff) | |
download | nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.gz nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.bz2 nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.lz nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.xz nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.zst nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/go/module.nix
Diffstat (limited to 'nixpkgs/pkgs/development/tools/pipenv')
-rw-r--r-- | nixpkgs/pkgs/development/tools/pipenv/default.nix | 47 |
1 files changed, 34 insertions, 13 deletions
diff --git a/nixpkgs/pkgs/development/tools/pipenv/default.nix b/nixpkgs/pkgs/development/tools/pipenv/default.nix index 0e73b5ee3b60..c8e4d0e20069 100644 --- a/nixpkgs/pkgs/development/tools/pipenv/default.nix +++ b/nixpkgs/pkgs/development/tools/pipenv/default.nix @@ -1,7 +1,7 @@ { lib , stdenv , python3 -, fetchPypi +, fetchFromGitHub , installShellFiles }: @@ -25,15 +25,22 @@ let in buildPythonApplication rec { pname = "pipenv"; version = "2023.2.4"; + format = "pyproject"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-GKPrpRnjbVnw1af5xCvSaFIeS5t7PRvWrc8TFWkyMnU="; + src = fetchFromGitHub { + owner = "pypa"; + repo = "pipenv"; + rev = "refs/tags/v${version}"; + hash = "sha256-jZOBu4mWyu8U6CGqtYgfcCCDSa0pGqoZEFnXl5IO+JY="; }; - LC_ALL = "en_US.UTF-8"; + env.LC_ALL = "en_US.UTF-8"; - nativeBuildInputs = [ installShellFiles ]; + nativeBuildInputs = [ + installShellFiles + setuptools + wheel + ]; postPatch = '' # pipenv invokes python in a subprocess to create a virtualenv @@ -46,6 +53,27 @@ in buildPythonApplication rec { propagatedBuildInputs = runtimeDeps python3.pkgs; + preCheck = '' + export HOME="$TMPDIR" + ''; + + nativeCheckInputs = [ + mock + pytestCheckHook + pytest-xdist + pytz + requests + ]; + + disabledTests = [ + "test_convert_deps_to_pip" + "test_download_file" + ]; + + disabledTestPaths = [ + "tests/integration" + ]; + postInstall = '' installShellCompletion --cmd pipenv \ --bash <(_PIPENV_COMPLETE=bash_source $out/bin/pipenv) \ @@ -53,13 +81,6 @@ in buildPythonApplication rec { --fish <(_PIPENV_COMPLETE=fish_source $out/bin/pipenv) ''; - doCheck = true; - checkPhase = '' - export HOME=$(mktemp -d) - cp -r --no-preserve=mode ${wheel.src} $HOME/wheel-src - $out/bin/pipenv install $HOME/wheel-src - ''; - meta = with lib; { description = "Python Development Workflow for Humans"; license = licenses.mit; |