Python: use PyPI mirror (#15001)

* mirrors: add pypi

* Python: Use pypi mirror for all PyPI packages
This commit is contained in:
Frederik Rietdijk 2016-04-26 14:38:03 +02:00 committed by Domen Kožar
parent ae8a3a14f0
commit d5e6a4494a
32 changed files with 1030 additions and 1025 deletions

View File

@ -108,7 +108,7 @@ toolz = buildPythonPackage rec{
version = "0.7.4"; version = "0.7.4";
src = pkgs.fetchurl{ src = pkgs.fetchurl{
url = "https://pypi.python.org/packages/source/t/toolz/toolz-${version}.tar.gz"; url = "mirror://pypi/t/toolz/toolz-${version}.tar.gz";
sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd"; sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd";
}; };
@ -146,7 +146,7 @@ pkgs.python35Packages.buildPythonPackage rec {
version = "0.7.4"; version = "0.7.4";
src = pkgs.fetchurl{ src = pkgs.fetchurl{
url = "https://pypi.python.org/packages/source/t/toolz/toolz-${version}.tar.gz"; url = "mirror://pypi/t/toolz/toolz-${version}.tar.gz";
sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd"; sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd";
}; };
@ -175,7 +175,7 @@ with import <nixpkgs> {};
version = "0.7.4"; version = "0.7.4";
src = pkgs.fetchurl{ src = pkgs.fetchurl{
url = "https://pypi.python.org/packages/source/t/toolz/toolz-${version}.tar.gz"; url = "mirror://pypi/t/toolz/toolz-${version}.tar.gz";
sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd"; sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd";
}; };
@ -220,7 +220,7 @@ datashape = buildPythonPackage rec {
version = "0.4.7"; version = "0.4.7";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/D/DataShape/${name}.tar.gz"; url = "mirror://pypi/D/DataShape/${name}.tar.gz";
sha256 = "14b2ef766d4c9652ab813182e866f493475e65e558bed0822e38bf07bba1a278"; sha256 = "14b2ef766d4c9652ab813182e866f493475e65e558bed0822e38bf07bba1a278";
}; };
@ -251,7 +251,7 @@ lxml = buildPythonPackage rec {
name = "lxml-3.4.4"; name = "lxml-3.4.4";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "http://pypi.python.org/packages/source/l/lxml/${name}.tar.gz"; url = "mirror://pypi/l/lxml/${name}.tar.gz";
sha256 = "16a0fa97hym9ysdk3rmqz32xdjqmy4w34ld3rm3jf5viqjx65lxk"; sha256 = "16a0fa97hym9ysdk3rmqz32xdjqmy4w34ld3rm3jf5viqjx65lxk";
}; };
@ -282,7 +282,7 @@ pyfftw = buildPythonPackage rec {
version = "0.9.2"; version = "0.9.2";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/p/pyFFTW/pyFFTW-${version}.tar.gz"; url = "mirror://pypi/p/pyFFTW/pyFFTW-${version}.tar.gz";
sha256 = "f6bbb6afa93085409ab24885a1a3cdb8909f095a142f4d49e346f2bd1b789074"; sha256 = "f6bbb6afa93085409ab24885a1a3cdb8909f095a142f4d49e346f2bd1b789074";
}; };
@ -373,7 +373,7 @@ buildPythonPackage rec {
version = "0.7.4"; version = "0.7.4";
src = pkgs.fetchurl{ src = pkgs.fetchurl{
url = "https://pypi.python.org/packages/source/t/toolz/toolz-${version}.tar.gz"; url = "mirror://pypi/t/toolz/toolz-${version}.tar.gz";
sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd"; sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd";
}; };

View File

@ -5,7 +5,7 @@ let
version = "0.1.7"; version = "0.1.7";
name = "jsonrpclib-${version}"; name = "jsonrpclib-${version}";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/j/jsonrpclib/${name}.tar.gz"; url = "mirror://pypi/j/jsonrpclib/${name}.tar.gz";
sha256 = "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"; sha256 = "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z";
}; };
propagatedBuildInputs = [ pythonPackages.cjson ]; propagatedBuildInputs = [ pythonPackages.cjson ];

View File

@ -5,7 +5,7 @@ python3Packages.buildPythonApplication rec {
name = "khal-${version}"; name = "khal-${version}";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/k/khal/khal-${version}.tar.gz"; url = "mirror://pypi/k/khal/khal-${version}.tar.gz";
sha256 = "00llxj7cv31mjsx0j6zxmyi9s1q20yvfkn025xcy8cv1ylfwic66"; sha256 = "00llxj7cv31mjsx0j6zxmyi9s1q20yvfkn025xcy8cv1ylfwic66";
}; };

View File

@ -16,7 +16,7 @@ buildPythonApplication rec {
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "http://pypi.python.org/packages/source/p/pitz/${name}.tar.gz"; url = "mirror://pypi/p/pitz/${name}.tar.gz";
sha256 = "1k7f3h4acllzqy3mjqnjd4w5jskp03s79b7dx3c85vlmd7824smr"; sha256 = "1k7f3h4acllzqy3mjqnjd4w5jskp03s79b7dx3c85vlmd7824smr";
}; };

View File

@ -13,7 +13,7 @@ buildPythonApplication rec {
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/s/spyder/${name}.zip"; url = "mirror://pypi/s/spyder/${name}.zip";
sha256 = "99fdae2cea325c0f2842c77bd67dd22db19fef3d9c0dde1545b1a2650eae517e"; sha256 = "99fdae2cea325c0f2842c77bd67dd22db19fef3d9c0dde1545b1a2650eae517e";
}; };

View File

@ -11,7 +11,7 @@ pythonPackages.buildPythonApplication rec {
src = fetchurl { src = fetchurl {
url = url =
"https://pypi.python.org/packages/source/b/bugs-everywhere/bugs-everywhere-${version}.tar.gz"; "mirror://pypi/b/bugs-everywhere/bugs-everywhere-${version}.tar.gz";
sha256 = "1ikm3ckwpimwcvx32vy7gh5gbp7q750j3327m17nvrj99g3daz2d"; sha256 = "1ikm3ckwpimwcvx32vy7gh5gbp7q750j3327m17nvrj99g3daz2d";
}; };

View File

@ -7,7 +7,7 @@ python3Packages.buildPythonApplication rec {
disabled = !python3Packages.isPy3k; disabled = !python3Packages.isPy3k;
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/i/${pname}/${name}.tar.gz"; url = "mirror://pypi/i/${pname}/${name}.tar.gz";
sha256 = "1bpkkf9q4zqq7fh65zynbv26nq24rfznmw71jjvda7g8kjrwjdk5"; sha256 = "1bpkkf9q4zqq7fh65zynbv26nq24rfznmw71jjvda7g8kjrwjdk5";
}; };

View File

@ -340,4 +340,9 @@ rec {
http://repo.steampowered.com/steamrt/ http://repo.steampowered.com/steamrt/
https://abbradar.net/steamrt/ https://abbradar.net/steamrt/
]; ];
# Python PyPI mirrors
pypi = [
https://pypi.io/packages/source/
];
} }

View File

@ -6,7 +6,7 @@ buildPythonApplication rec {
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "http://pypi.python.org/packages/source/i/ino/${name}.tar.gz"; url = "mirror://pypi/i/ino/${name}.tar.gz";
sha256 = "0k6lzfcn55favbj0w4afrvnmwyskf7bgzg9javv2ycvskp35srwv"; sha256 = "0k6lzfcn55favbj0w4afrvnmwyskf7bgzg9javv2ycvskp35srwv";
}; };

View File

@ -42,7 +42,7 @@ let
virtualenvVersion = "1.11.6"; virtualenvVersion = "1.11.6";
virtualenv = fetchurl { virtualenv = fetchurl {
url = "https://pypi.python.org/packages/source/v/virtualenv/virtualenv-${virtualenvVersion}.tar.gz"; url = "mirror://pypi/v/virtualenv/virtualenv-${virtualenvVersion}.tar.gz";
sha256 = "1xq4prmg25n9cz5zcvbqx68lmc3kl39by582vd8pzs9f3qalqyiy"; sha256 = "1xq4prmg25n9cz5zcvbqx68lmc3kl39by582vd8pzs9f3qalqyiy";
}; };
in in

View File

@ -4,7 +4,7 @@ buildPythonPackage {
name = "zc.buildout-nix-2.5.0"; name = "zc.buildout-nix-2.5.0";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/z/zc.buildout/zc.buildout-2.5.0.tar.gz"; url = "mirror://pypi/z/zc.buildout/zc.buildout-2.5.0.tar.gz";
sha256 = "721bd2231a9f01f2d5c14f3adccb3385f85b093ee05b18d15d0ff2b9f1f1bd02"; sha256 = "721bd2231a9f01f2d5c14f3adccb3385f85b093ee05b18d15d0ff2b9f1f1bd02";
}; };

View File

@ -16,7 +16,7 @@ buildPythonPackage rec {
version = "2.5.0"; version = "2.5.0";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/h/h5py/${name}.tar.gz"; url = "mirror://pypi/h/h5py/${name}.tar.gz";
sha256 = "9833df8a679e108b561670b245bcf9f3a827b10ccb3a5fa1341523852cfac2f6"; sha256 = "9833df8a679e108b561670b245bcf9f3a827b10ccb3a5fa1341523852cfac2f6";
}; };

View File

@ -15,7 +15,7 @@ buildPythonPackage rec {
version = "1.5.1"; version = "1.5.1";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/m/matplotlib/${name}.tar.gz"; url = "mirror://pypi/m/matplotlib/${name}.tar.gz";
sha256 = "3ab8d968eac602145642d0db63dd8d67c85e9a5444ce0e2ecb2a8fedc7224d40"; sha256 = "3ab8d968eac602145642d0db63dd8d67c85e9a5444ce0e2ecb2a8fedc7224d40";
}; };

View File

@ -5,7 +5,7 @@ buildPythonPackage rec {
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "http://pypi.python.org/packages/source/p/pycrypto/${name}.tar.gz"; url = "mirror://pypi/p/pycrypto/${name}.tar.gz";
sha256 = "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"; sha256 = "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj";
}; };

View File

@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
version = "19.4"; # 18.4 and up breaks python34Packages.characteristic and many others version = "19.4"; # 18.4 and up breaks python34Packages.characteristic and many others
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/s/setuptools/${shortName}.tar.gz"; url = "mirror://pypi/s/setuptools/${shortName}.tar.gz";
sha256 = "214bf29933f47cf25e6faa569f710731728a07a19cae91ea64f826051f68a8cf"; sha256 = "214bf29933f47cf25e6faa569f710731728a07a19cae91ea64f826051f68a8cf";
}; };

View File

@ -6,7 +6,7 @@ buildPythonPackage rec {
name = "tables-${version}"; name = "tables-${version}";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/t/tables/${name}.tar.gz"; url = "mirror://pypi/t/tables/${name}.tar.gz";
sha256 = "3564b351a71ec1737b503b001eb7ceae1f65d5d6e3ffe1ea75aafba10f37fa84"; sha256 = "3564b351a71ec1737b503b001eb7ceae1f65d5d6e3ffe1ea75aafba10f37fa84";
}; };

View File

@ -7,7 +7,7 @@ buildPythonApplication rec {
version = "0.4.3"; version = "0.4.3";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/y/yolk/yolk-${version}.tar.gz"; url = "mirror://pypi/y/yolk/yolk-${version}.tar.gz";
sha256 = "1f6xwx210jnl5nq0m3agh2p1cxmaizawaf3fwq43q4yw050fn1qw"; sha256 = "1f6xwx210jnl5nq0m3agh2p1cxmaizawaf3fwq43q4yw050fn1qw";
}; };

View File

@ -5,7 +5,7 @@ buildPythonApplication (rec {
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/b/buildbot-slave/${name}.tar.gz"; url = "mirror://pypi/b/buildbot-slave/${name}.tar.gz";
sha256 = "09pncw44c7vqrl7zyn1nvfismiqi9s51axk9cqxn9gq7jhj38mpg"; sha256 = "09pncw44c7vqrl7zyn1nvfismiqi9s51axk9cqxn9gq7jhj38mpg";
}; };

View File

@ -13,7 +13,7 @@ buildPythonApplication (rec {
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/b/buildbot/${name}.tar.gz"; url = "mirror://pypi/b/buildbot/${name}.tar.gz";
sha256 = "1mn4h04sp6smr3ahqfflys15cpn13q9mfkapcs2jc4ppvxv6kdn6"; sha256 = "1mn4h04sp6smr3ahqfflys15cpn13q9mfkapcs2jc4ppvxv6kdn6";
}; };

View File

@ -5,7 +5,7 @@ pythonPackages.buildPythonApplication rec {
version = "2.3.2"; version = "2.3.2";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/d/devpi-client/devpi-client-${version}.tar.gz"; url = "mirror://pypi/d/devpi-client/devpi-client-${version}.tar.gz";
md5= "bfc8cd768f983fd0585c347bca00c8bb"; md5= "bfc8cd768f983fd0585c347bca00c8bb";
}; };

View File

@ -5,7 +5,7 @@ let
version = "0.6.8"; version = "0.6.8";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/m/matrix-angular-sdk/matrix-angular-sdk-${version}.tar.gz"; url = "mirror://pypi/m/matrix-angular-sdk/matrix-angular-sdk-${version}.tar.gz";
sha256 = "0gmx4y5kqqphnq3m7xk2vpzb0w2a4palicw7wfdr1q2schl9fhz2"; sha256 = "0gmx4y5kqqphnq3m7xk2vpzb0w2a4palicw7wfdr1q2schl9fhz2";
}; };
}; };

View File

@ -6,7 +6,7 @@ buildPythonApplication rec {
version = "0.4.4"; version = "0.4.4";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/c/cli53/${name}.tar.gz"; url = "mirror://pypi/c/cli53/${name}.tar.gz";
sha256 = "0s9jzigq6a16m2c3qklssx2lz16cf13g5zh80vh24kxazaxqzbig"; sha256 = "0s9jzigq6a16m2c3qklssx2lz16cf13g5zh80vh24kxazaxqzbig";
}; };

View File

@ -13,7 +13,7 @@ pythonPackages.buildPythonApplication rec {
disabled = pythonPackages.isPy3k; disabled = pythonPackages.isPy3k;
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/s/salt/${name}.tar.gz"; url = "mirror://pypi/s/salt/${name}.tar.gz";
sha256 = "1xcfcs50pyammb60myph4f8bi2r6iwkxwsnnhrjwvkv2ymxwxv5j"; sha256 = "1xcfcs50pyammb60myph4f8bi2r6iwkxwsnnhrjwvkv2ymxwxv5j";
}; };

View File

@ -11,7 +11,7 @@ pythonPackages.buildPythonApplication rec {
]; ];
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/S/SaltTesting/${name}.tar.gz"; url = "mirror://pypi/S/SaltTesting/${name}.tar.gz";
sha256 = "0p0y8kb77pis18rcig1kf9dnns4bnfa3mr91q40lq4mw63l1b34h"; sha256 = "0p0y8kb77pis18rcig1kf9dnns4bnfa3mr91q40lq4mw63l1b34h";
}; };

View File

@ -6,7 +6,7 @@ python3Packages.buildPythonApplication rec {
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/b/borgbackup/borgbackup-${version}.tar.gz"; url = "mirror://pypi/b/borgbackup/borgbackup-${version}.tar.gz";
sha256 = "1myz10pwxnac9z59gw1w3xjhz6ghx03vngpl97ca527pj0r39shi"; sha256 = "1myz10pwxnac9z59gw1w3xjhz6ghx03vngpl97ca527pj0r39shi";
}; };

View File

@ -5,7 +5,7 @@ pythonPackages.buildPythonApplication rec {
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "http://pypi.python.org/packages/source/h/httpie/${name}.tar.gz"; url = "mirror://pypi/h/httpie/${name}.tar.gz";
sha256 = "0s0dsj1iimn17h0xyziwk4kz4ga9s0vy9rhzixh8dna32za84fdg"; sha256 = "0s0dsj1iimn17h0xyziwk4kz4ga9s0vy9rhzixh8dna32za84fdg";
}; };

View File

@ -5,7 +5,7 @@ pythonPackages.buildPythonApplication rec {
version = "0.3.4"; version = "0.3.4";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/s/speedtest-cli/speedtest-cli-${version}.tar.gz"; url = "mirror://pypi/s/speedtest-cli/speedtest-cli-${version}.tar.gz";
sha256 = "19i671cd815fcv0x7h2m0a493slzwkzn7r926g8myx1srkss0q6d"; sha256 = "19i671cd815fcv0x7h2m0a493slzwkzn7r926g8myx1srkss0q6d";
}; };

View File

@ -6,7 +6,7 @@ pythonPackages.buildPythonApplication rec {
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/n/nix-nox/nix-nox-${version}.tar.gz"; url = "mirror://pypi/n/nix-nox/nix-nox-${version}.tar.gz";
sha256 = "1wpxh5fhj8nx4yx4cvmc087cnf4iqwxf7zd7rdh2ln3pgxrjfral"; sha256 = "1wpxh5fhj8nx4yx4cvmc087cnf4iqwxf7zd7rdh2ln3pgxrjfral";
}; };

View File

@ -7,7 +7,7 @@ pythonPackages.buildPythonApplication rec {
src = fetchurl { src = fetchurl {
sha256 = "18hrwi2gyri1n2rq0nghvv7hfhbhh5h67am89524vc1yyx40vn3b"; sha256 = "18hrwi2gyri1n2rq0nghvv7hfhbhh5h67am89524vc1yyx40vn3b";
url = "https://pypi.python.org/packages/source/s/sshuttle/${name}.tar.gz"; url = "mirror://pypi/s/sshuttle/${name}.tar.gz";
}; };
patches = [ ./sudo.patch ]; patches = [ ./sudo.patch ];

View File

@ -5,7 +5,7 @@ pythonPackages.buildPythonApplication rec {
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/g/grin/${name}.tar.gz"; url = "mirror://pypi/g/grin/${name}.tar.gz";
sha256 = "1swzwb17wibam8jszdv98h557hlx44pg6psv6rjz7i33qlxk0fdz"; sha256 = "1swzwb17wibam8jszdv98h557hlx44pg6psv6rjz7i33qlxk0fdz";
}; };

View File

@ -5,7 +5,7 @@ pythonPackages.buildPythonApplication rec {
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "http://pypi.python.org/packages/source/v/vnc2flv/${name}.tar.gz"; url = "mirror://pypi/v/vnc2flv/${name}.tar.gz";
sha256 = "14d4nm8yim0bm0nd3wyj7z4zdsg5zk3d9bhhvwdc36x03r8d0sbq"; sha256 = "14d4nm8yim0bm0nd3wyj7z4zdsg5zk3d9bhhvwdc36x03r8d0sbq";
}; };

File diff suppressed because it is too large Load Diff