Tahoe-LAFS 1.6.0.
svn path=/nixpkgs/trunk/; revision=19784
This commit is contained in:
parent
1e9f08cb2c
commit
b5088abe20
@ -1,13 +1,14 @@
|
|||||||
{ fetchurl, lib, unzip, buildPythonPackage, twisted, foolscap, nevow
|
{ fetchurl, lib, unzip, buildPythonPackage, twisted, foolscap, nevow
|
||||||
, simplejson, zfec, pycryptopp, pysqlite, nettools }:
|
, simplejson, zfec, pycryptopp, pysqlite, darcsver, setuptoolsTrial
|
||||||
|
, setuptoolsDarcs, numpy, nettools }:
|
||||||
|
|
||||||
buildPythonPackage (rec {
|
buildPythonPackage (rec {
|
||||||
name = "tahoe-lafs-1.5.0";
|
name = "tahoe-lafs-1.6.0";
|
||||||
namePrefix = "";
|
namePrefix = "";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://allmydata.org/source/tahoe/releases/allmydata-tahoe-1.5.0.zip";
|
url = "http://allmydata.org/source/tahoe/releases/allmydata-tahoe-1.6.0.zip";
|
||||||
sha256 = "1cgwm7v49mlfsq47k8gw2bz14d6lnls0mr6dc18815pf24z4f00n";
|
sha256 = "10j6s4wqqxb0x6plwvfnabxxl0k8jy1g1dfsrhpfgdi42f25dain";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
@ -26,18 +27,25 @@ buildPythonPackage (rec {
|
|||||||
|
|
||||||
sed -i "src/allmydata/util/iputil.py" \
|
sed -i "src/allmydata/util/iputil.py" \
|
||||||
-es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/sbin/ifconfig'|g"
|
-es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/sbin/ifconfig'|g"
|
||||||
|
|
||||||
|
# Chroots don't have /etc/hosts and /etc/resolv.conf, so work around
|
||||||
|
# that.
|
||||||
|
for i in $(find src/allmydata/test -type f)
|
||||||
|
do
|
||||||
|
sed -i "$i" -e"s/localhost/127.0.0.1/g"
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ unzip ];
|
buildInputs = [ unzip ]
|
||||||
|
++ [ numpy ]; # Some tests want this
|
||||||
|
|
||||||
# The `backup' command works best with `pysqlite'.
|
# The `backup' command requires `pysqlite'.
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs =
|
||||||
twisted foolscap nevow simplejson zfec pycryptopp pysqlite
|
[ twisted foolscap nevow simplejson zfec pycryptopp pysqlite
|
||||||
];
|
darcsver setuptoolsTrial
|
||||||
|
];
|
||||||
|
|
||||||
# FIXME: Many tests try to write to the Nix store or to $HOME, which
|
# The test suite is run in `postInstall'.
|
||||||
# fails. Disable tests until we have a reasonable hack to allow
|
|
||||||
# them to run.
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@ -50,6 +58,12 @@ buildPythonPackage (rec {
|
|||||||
ensureDir "$out/share/doc/${name}"
|
ensureDir "$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 {} \;
|
||||||
|
|
||||||
|
# Run the tests once everything is installed.
|
||||||
|
# FIXME: Some of the tests want to run $out/bin/tahoe, which isn't usable
|
||||||
|
# yet because it gets wrapped later on, in `postFixup'.
|
||||||
|
export PYTHON_EGG_CACHE="$TMPDIR"
|
||||||
|
python setup.py trial
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -7742,7 +7742,8 @@ let
|
|||||||
tahoelafs = import ../tools/networking/p2p/tahoe-lafs {
|
tahoelafs = import ../tools/networking/p2p/tahoe-lafs {
|
||||||
inherit fetchurl lib unzip nettools buildPythonPackage;
|
inherit fetchurl lib unzip nettools buildPythonPackage;
|
||||||
inherit (pythonPackages) twisted foolscap simplejson nevow zfec
|
inherit (pythonPackages) twisted foolscap simplejson nevow zfec
|
||||||
pycryptopp pysqlite;
|
pycryptopp pysqlite darcsver setuptoolsTrial setuptoolsDarcs
|
||||||
|
numpy;
|
||||||
};
|
};
|
||||||
|
|
||||||
tailor = builderDefsPackage (import ../applications/version-management/tailor) {
|
tailor = builderDefsPackage (import ../applications/version-management/tailor) {
|
||||||
|
Loading…
Reference in New Issue
Block a user