Merge pull request #1492 from wkennington/master.tahoe
Upgrade tahoe-lafs
This commit is contained in:
commit
3ca77df1ef
@ -1,5 +1,5 @@
|
|||||||
{ fetchurl, lib, unzip, buildPythonPackage, twisted, foolscap, nevow
|
{ fetchurl, lib, unzip, buildPythonPackage, twisted, foolscap, nevow
|
||||||
, simplejson, zfec, pycryptopp, pysqlite, darcsver, setuptoolsTrial
|
, simplejson, zfec, pycryptopp, sqlite3, darcsver, setuptoolsTrial
|
||||||
, setuptoolsDarcs, numpy, nettools, pycrypto, pyasn1, mock }:
|
, setuptoolsDarcs, numpy, nettools, pycrypto, pyasn1, mock }:
|
||||||
|
|
||||||
# FAILURES: The "running build_ext" phase fails to compile Twisted
|
# FAILURES: The "running build_ext" phase fails to compile Twisted
|
||||||
@ -8,34 +8,18 @@
|
|||||||
# some loss of functionality because of it.
|
# some loss of functionality because of it.
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "tahoe-lafs-1.9.2";
|
name = "tahoe-lafs-1.10.0";
|
||||||
in
|
in
|
||||||
buildPythonPackage {
|
buildPythonPackage {
|
||||||
inherit name;
|
inherit name;
|
||||||
namePrefix = "";
|
namePrefix = "";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://tahoe-lafs.org/source/tahoe-lafs/snapshots/allmydata-tahoe-1.9.2.tar.bz2";
|
url = "http://tahoe-lafs.org/source/tahoe-lafs/releases/allmydata-tahoe-1.10.0.tar.bz2";
|
||||||
sha256 = "0111gmavyrnglx10kj8z7wm7y97fyg9isv71c0gx9kq4c03knxq4";
|
sha256 = "1qng7j1vykk8zl5da9yklkljvgxfnjky58gcay6dypz91xq1cmcw";
|
||||||
};
|
};
|
||||||
|
|
||||||
# The patch doesn't apply cleanly to the current version.
|
|
||||||
patches = [ /* ./test-timeout.patch */ ];
|
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
echo "forcing the use of \`setuptools' 0.6c9 rather than an unreleased version"
|
|
||||||
for i in *setup.py
|
|
||||||
do
|
|
||||||
sed -i "$i" -es'/0.6c12dev/0.6c9/g'
|
|
||||||
done
|
|
||||||
|
|
||||||
# `find_exe()' returns a list like ['.../bin/python'
|
|
||||||
# '.../bin/twistd'], which doesn't work when `twistd' is not a
|
|
||||||
# Python script (e.g., when it's a script produced by
|
|
||||||
# `wrapProgram').
|
|
||||||
sed -i "src/allmydata/scripts/startstop_node.py" \
|
|
||||||
-es"|cmd = find_exe.find_exe('twistd')|cmd = ['${twisted}/bin/twistd']|g"
|
|
||||||
|
|
||||||
sed -i "src/allmydata/util/iputil.py" \
|
sed -i "src/allmydata/util/iputil.py" \
|
||||||
-es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/bin/ifconfig'|g"
|
-es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/bin/ifconfig'|g"
|
||||||
|
|
||||||
@ -50,9 +34,9 @@ buildPythonPackage {
|
|||||||
buildInputs = [ unzip ]
|
buildInputs = [ unzip ]
|
||||||
++ [ numpy ]; # Some tests want this + http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/mock-0.6.0.tar.bz2
|
++ [ numpy ]; # Some tests want this + http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/mock-0.6.0.tar.bz2
|
||||||
|
|
||||||
# The `backup' command requires `pysqlite'.
|
# The `backup' command requires `sqlite3'.
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
[ twisted foolscap nevow simplejson zfec pycryptopp pysqlite
|
[ twisted foolscap nevow simplejson zfec pycryptopp sqlite3
|
||||||
darcsver setuptoolsTrial setuptoolsDarcs pycrypto pyasn1 mock
|
darcsver setuptoolsTrial setuptoolsDarcs pycrypto pyasn1 mock
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -61,11 +45,6 @@ buildPythonPackage {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Install the documentation.
|
# Install the documentation.
|
||||||
|
|
||||||
# FIXME: Inkscape segfaults when run from here. Setting $HOME to
|
|
||||||
# something writable doesn't help; providing $FONTCONFIG_FILE doesn't
|
|
||||||
# help either. So we just don't run `make' under `docs/'.
|
|
||||||
|
|
||||||
mkdir -p "$out/share/doc/${name}"
|
mkdir -p "$out/share/doc/${name}"
|
||||||
cp -rv "docs/"* "$out/share/doc/${name}"
|
cp -rv "docs/"* "$out/share/doc/${name}"
|
||||||
find "$out/share/doc/${name}" -name Makefile -exec rm -v {} \;
|
find "$out/share/doc/${name}" -name Makefile -exec rm -v {} \;
|
||||||
@ -88,7 +67,7 @@ buildPythonPackage {
|
|||||||
|
|
||||||
homepage = http://allmydata.org/;
|
homepage = http://allmydata.org/;
|
||||||
|
|
||||||
license = [ "GPLv2+" /* or */ "TGPPLv1+" ];
|
license = [ lib.licenses.gpl2Plus /* or */ "TGPPLv1+" ];
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.simons ];
|
maintainers = [ lib.maintainers.simons ];
|
||||||
platforms = lib.platforms.gnu; # arbitrary choice
|
platforms = lib.platforms.gnu; # arbitrary choice
|
||||||
|
@ -8922,7 +8922,7 @@ let
|
|||||||
|
|
||||||
tahoelafs = callPackage ../tools/networking/p2p/tahoe-lafs {
|
tahoelafs = callPackage ../tools/networking/p2p/tahoe-lafs {
|
||||||
inherit (pythonPackages) twisted foolscap simplejson nevow zfec
|
inherit (pythonPackages) twisted foolscap simplejson nevow zfec
|
||||||
pycryptopp pysqlite darcsver setuptoolsTrial setuptoolsDarcs
|
pycryptopp sqlite3 darcsver setuptoolsTrial setuptoolsDarcs
|
||||||
numpy pyasn1 mock;
|
numpy pyasn1 mock;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1249,11 +1249,11 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
|||||||
});
|
});
|
||||||
|
|
||||||
darcsver = buildPythonPackage (rec {
|
darcsver = buildPythonPackage (rec {
|
||||||
name = "darcsver-1.7.2";
|
name = "darcsver-1.7.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://pypi.python.org/packages/source/d/darcsver/${name}.tar.gz";
|
url = "http://pypi.python.org/packages/source/d/darcsver/${name}.tar.gz";
|
||||||
md5 = "94ca7e8c9ea0f69c0f3fc6f9fc88f65a";
|
sha256 = "1yb1c3jxqvy4r3qiwvnb86qi5plw6018h15r3yk5ji3nk54qdcb6";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pythonPackages.mock ];
|
buildInputs = [ pythonPackages.mock ];
|
||||||
@ -4765,11 +4765,11 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
|||||||
|
|
||||||
|
|
||||||
pycryptopp = buildPythonPackage (rec {
|
pycryptopp = buildPythonPackage (rec {
|
||||||
name = "pycryptopp-0.5.29";
|
name = "pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://pypi.python.org/packages/source/p/pycryptopp/${name}.tar.gz";
|
url = "http://pypi.python.org/packages/source/p/pycryptopp/${name}.tar.gz";
|
||||||
sha256 = "d504775b73d30fb05a3237f83c4e9e1ff3312cbba90a4a23e6cbb7d32219502b";
|
sha256 = "0n90h1yg7bfvlbhnc54xb6dbqm286ykaksyg04kxlhyjgf8mhq8i";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Prefer crypto++ library from the Nix store over the one that's included
|
# Prefer crypto++ library from the Nix store over the one that's included
|
||||||
@ -5329,11 +5329,11 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
|||||||
|
|
||||||
|
|
||||||
pysqlite = buildPythonPackage (rec {
|
pysqlite = buildPythonPackage (rec {
|
||||||
name = "pysqlite-2.5.5";
|
name = "pysqlite-2.6.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://pysqlite.googlecode.com/files/${name}.tar.gz";
|
url = "https://pypi.python.org/packages/source/p/pysqlite/${name}.tar.gz";
|
||||||
sha256 = "ef7ca7f44893790e1a7084b10ea083770e138689406fddc7076d12d6bff4d44f";
|
sha256 = "13djzgnbi71znjjyaw4nybg6smilgszcid646j5qav7mdchkb77y";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Since the `.egg' file is zipped, the `NEEDED' of the `.so' files
|
# Since the `.egg' file is zipped, the `NEEDED' of the `.so' files
|
||||||
@ -6784,11 +6784,11 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
|||||||
});
|
});
|
||||||
|
|
||||||
twisted = buildPythonPackage rec {
|
twisted = buildPythonPackage rec {
|
||||||
name = "twisted-10.2.0";
|
name = "twisted-13.2.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://tmrc.mit.edu/mirror/twisted/Twisted/10.2/Twisted-10.2.0.tar.bz2;
|
url = "https://pypi.python.org/packages/source/T/Twisted/Twisted-13.2.0.tar.bz2";
|
||||||
sha256 = "110c30z622jn14yany1sxfaqj5qx20n9rc9zqacxlwma30fdcbjn";
|
sha256 = "1wrcqv5lvgwk2aq83qb2s2ng2vx14hbjjk2gc30cg6h1iiipal89";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ zope_interface ];
|
propagatedBuildInputs = [ zope_interface ];
|
||||||
@ -6809,7 +6809,7 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
|||||||
and licensed under the MIT license.
|
and licensed under the MIT license.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
license = "MIT";
|
license = pkgs.lib.licenses.mit;
|
||||||
|
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
@ -7222,11 +7222,11 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
|||||||
|
|
||||||
|
|
||||||
zfec = buildPythonPackage (rec {
|
zfec = buildPythonPackage (rec {
|
||||||
name = "zfec-1.4.7";
|
name = "zfec-1.4.24";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://pypi.python.org/packages/source/z/zfec/${name}.tar.gz";
|
url = "http://pypi.python.org/packages/source/z/zfec/${name}.tar.gz";
|
||||||
sha256 = "3335c9054f45e2c59188400e892634b68761b29d06f3cafe525c60484902d379";
|
sha256 = "1ks94zlpy7n8sb8380gf90gx85qy0p9073wi1wngg6mccxp9xsg3";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ setuptoolsDarcs ];
|
buildInputs = [ setuptoolsDarcs ];
|
||||||
|
Loading…
Reference in New Issue
Block a user