Merge pull request #38110 from oxij/pkgs/tahoe-lafs
tahoe-lafs: install documentation, run tests
This commit is contained in:
commit
0528e18700
@ -1,4 +1,4 @@
|
|||||||
{ fetchurl, lib, unzip, nettools, pythonPackages }:
|
{ fetchurl, lib, unzip, nettools, pythonPackages, texinfo }:
|
||||||
|
|
||||||
# FAILURES: The "running build_ext" phase fails to compile Twisted
|
# FAILURES: The "running build_ext" phase fails to compile Twisted
|
||||||
# plugins, because it tries to write them into Twisted's (immutable)
|
# plugins, because it tries to write them into Twisted's (immutable)
|
||||||
@ -15,7 +15,9 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
sha256 = "0x9f1kjym1188fp6l5sqy0zz8mdb4xw861bni2ccv26q482ynbks";
|
sha256 = "0x9f1kjym1188fp6l5sqy0zz8mdb4xw861bni2ccv26q482ynbks";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
outputs = [ "out" "doc" "info" ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
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"
|
||||||
|
|
||||||
@ -30,6 +32,24 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
sed -i 's/"pycrypto.*"/"pycrypto"/' src/allmydata/_auto_deps.py
|
sed -i 's/"pycrypto.*"/"pycrypto"/' src/allmydata/_auto_deps.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Remove broken and expensive tests.
|
||||||
|
preConfigure = ''
|
||||||
|
(
|
||||||
|
cd src/allmydata/test
|
||||||
|
|
||||||
|
# Buggy?
|
||||||
|
rm cli/test_create.py test_backupdb.py
|
||||||
|
|
||||||
|
# These require Tor and I2P.
|
||||||
|
rm test_connections.py test_iputil.py test_hung_server.py test_i2p_provider.py test_tor_provider.py
|
||||||
|
|
||||||
|
# Expensive
|
||||||
|
rm test_system.py
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = with pythonPackages; [ sphinx texinfo ];
|
||||||
|
|
||||||
buildInputs = with pythonPackages; [ unzip numpy mock ];
|
buildInputs = with pythonPackages; [ unzip numpy mock ];
|
||||||
|
|
||||||
# The `backup' command requires `sqlite3'.
|
# The `backup' command requires `sqlite3'.
|
||||||
@ -39,16 +59,23 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
service-identity pyyaml
|
service-identity pyyaml
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Install the documentation.
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Install the documentation.
|
(
|
||||||
mkdir -p "$out/share/doc/${name}"
|
cd docs
|
||||||
cp -rv "docs/"* "$out/share/doc/${name}"
|
|
||||||
find "$out/share/doc/${name}" -name Makefile -exec rm -v {} \;
|
make singlehtml
|
||||||
|
mkdir -p "$doc/share/doc/${name}"
|
||||||
|
cp -rv _build/singlehtml/* "$doc/share/doc/${name}"
|
||||||
|
|
||||||
|
make info
|
||||||
|
mkdir -p "$info/share/info"
|
||||||
|
cp -rv _build/texinfo/*.info "$info/share/info"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
# Still broken. ~ C.
|
trial --rterrors allmydata
|
||||||
# trial allmydata
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -201,6 +201,7 @@ mapAliases (rec {
|
|||||||
sshfs = sshfs-fuse; # added 2017-08-14
|
sshfs = sshfs-fuse; # added 2017-08-14
|
||||||
sshfsFuse = sshfs-fuse; # added 2016-09
|
sshfsFuse = sshfs-fuse; # added 2016-09
|
||||||
surf-webkit2 = surf; # added 2017-04-02
|
surf-webkit2 = surf; # added 2017-04-02
|
||||||
|
tahoelafs = tahoe-lafs; # added 2018-03-26
|
||||||
system_config_printer = system-config-printer; # added 2016-01-03
|
system_config_printer = system-config-printer; # added 2016-01-03
|
||||||
telepathy_farstream = telepathy-farstream; # added 2018-02-25
|
telepathy_farstream = telepathy-farstream; # added 2018-02-25
|
||||||
telepathy_gabble = telepathy-gabble; # added 2018-02-25
|
telepathy_gabble = telepathy-gabble; # added 2018-02-25
|
||||||
|
@ -17922,7 +17922,7 @@ with pkgs;
|
|||||||
|
|
||||||
tagainijisho = callPackage ../applications/office/tagainijisho {};
|
tagainijisho = callPackage ../applications/office/tagainijisho {};
|
||||||
|
|
||||||
tahoelafs = callPackage ../tools/networking/p2p/tahoe-lafs {};
|
tahoe-lafs = callPackage ../tools/networking/p2p/tahoe-lafs {};
|
||||||
|
|
||||||
tailor = callPackage ../applications/version-management/tailor {};
|
tailor = callPackage ../applications/version-management/tailor {};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user