summary refs log tree commit diff
path: root/pkgs/development/tools/pypi2nix
diff options
context:
space:
mode:
authorJussi Mäki <jussi.maki@digitalasset.com>2016-06-23 12:35:29 +0200
committerRok Garbas <rok@garbas.si>2016-06-23 12:35:29 +0200
commitd87455a0991cb5bba675ee2a04f7d0ab6ad17942 (patch)
tree99a4d8ce6205c5c7021754ecef0e2367eea6ccb3 /pkgs/development/tools/pypi2nix
parent7473e4f2b4754973fc6b4d7e439f2e04e7b65fe4 (diff)
downloadnixpkgs-d87455a0991cb5bba675ee2a04f7d0ab6ad17942.tar
nixpkgs-d87455a0991cb5bba675ee2a04f7d0ab6ad17942.tar.gz
nixpkgs-d87455a0991cb5bba675ee2a04f7d0ab6ad17942.tar.bz2
nixpkgs-d87455a0991cb5bba675ee2a04f7d0ab6ad17942.tar.lz
nixpkgs-d87455a0991cb5bba675ee2a04f7d0ab6ad17942.tar.xz
nixpkgs-d87455a0991cb5bba675ee2a04f7d0ab6ad17942.tar.zst
nixpkgs-d87455a0991cb5bba675ee2a04f7d0ab6ad17942.zip
pypi2nix: Use pypi mirror (#16451)
Diffstat (limited to 'pkgs/development/tools/pypi2nix')
-rw-r--r--pkgs/development/tools/pypi2nix/deps.nix17
1 files changed, 7 insertions, 10 deletions
diff --git a/pkgs/development/tools/pypi2nix/deps.nix b/pkgs/development/tools/pypi2nix/deps.nix
index 39fc9329d5e..2243dd78185 100644
--- a/pkgs/development/tools/pypi2nix/deps.nix
+++ b/pkgs/development/tools/pypi2nix/deps.nix
@@ -1,7 +1,4 @@
-{ fetchurl
-#, pypi_url ? "https://files.pythonhosted.org/packages"
-, pypi_url ? "https://pypi.io/packages/source/packages"
-}:
+{ fetchurl }:
 
 rec {
 
@@ -36,32 +33,32 @@ rec {
   };
 
   pip = fetchurl {
-    url = "${pypi_url}/source/p/pip/pip-${pipVersion}.tar.gz";
+    url = "mirror://pypi/p/pip/pip-${pipVersion}.tar.gz";
     md5 = pipHash;
   };
 
   setuptools = fetchurl {
-    url = "${pypi_url}/source/s/setuptools/setuptools-${setuptoolsVersion}.tar.gz";
+    url = "mirror://pypi/s/setuptools/setuptools-${setuptoolsVersion}.tar.gz";
     md5 = setuptoolsHash;
   };
 
   zcbuildout = fetchurl {
-    url = "${pypi_url}/source/z/zc.buildout/zc.buildout-${zcbuildoutVersion}.tar.gz";
+    url = "mirror://pypi/z/zc.buildout/zc.buildout-${zcbuildoutVersion}.tar.gz";
     md5 = zcbuildoutHash;
   };
 
   zcrecipeegg = fetchurl {
-    url = "${pypi_url}/source/z/zc.recipe.egg/zc.recipe.egg-${zcrecipeeggVersion}.tar.gz";
+    url = "mirror://pypi/z/zc.recipe.egg/zc.recipe.egg-${zcrecipeeggVersion}.tar.gz";
     md5 = zcrecipeeggHash;
   };
 
   wheel = fetchurl {
-    url = "${pypi_url}/source/w/wheel/wheel-${wheelVersion}.tar.gz";
+    url = "mirror://pypi/w/wheel/wheel-${wheelVersion}.tar.gz";
     md5 = wheelHash;
   };
 
   click = fetchurl {
-    url = "${pypi_url}/source/c/click/click-${clickVersion}.tar.gz";
+    url = "mirror://pypi/c/click/click-${clickVersion}.tar.gz";
     md5 = clickHash;
   };