From 1c406512eb6331ca4d75e0d63298c5e0e7009fdd Mon Sep 17 00:00:00 2001 From: Nejc Zupan Date: Wed, 13 Nov 2019 20:01:30 +0000 Subject: [PATCH] Use wheel instead of pyjokes We need an egg to install to test that pipenv works. Instead of downloading & installing pyjokes, let's use wheel since we already have it. Refs https://github.com/NixOS/nixpkgs/pull/73349#discussion_r345830233 --- pkgs/development/tools/pipenv/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/pipenv/default.nix b/pkgs/development/tools/pipenv/default.nix index 5ee92a5de568..37d5c8a7890d 100644 --- a/pkgs/development/tools/pipenv/default.nix +++ b/pkgs/development/tools/pipenv/default.nix @@ -42,7 +42,8 @@ in buildPythonApplication rec { doCheck = true; checkPhase = '' export HOME=$(mktemp -d) - $out/bin/pipenv install ${fetchPypi {pname="pyjokes"; version="0.6.0"; sha256="08860eedb78cbfa4618243c8db088f21c39823ece1fdaf0133e52d9c56e981a5";} } + cp -r --no-preserve=mode ${wheel.src} $HOME/wheel-src + $out/bin/pipenv install $HOME/wheel-src ''; meta = with lib; {