Skip to content
Snippets Groups Projects
Unverified Commit 4ed8cc80 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone Committed by GitHub
Browse files

Merge pull request #33 from PrivateStorageio/improve-tahoe-lafs-packaging

Improve Tahoe-LAFS packaging
parents e67aa972 e034ce66
No related branches found
No related tags found
No related merge requests found
{ fetchFromGitHub, nettools, pythonPackages, buildPythonPackage
, twisted, foolscap, nevow, simplejson, zfec, pycryptopp, darcsver
, setuptoolsTrial, setuptoolsDarcs, pycrypto, pyasn1, zope_interface
{ fetchFromGitHub, nettools, python
, twisted, foolscap, nevow, zfec
, setuptoolsTrial, pyasn1, zope_interface
, service-identity, pyyaml, magic-wormhole, treq, appdirs
, eliot, autobahn
, eliot, autobahn, cryptography
}:
buildPythonPackage rec {
python.pkgs.buildPythonPackage rec {
version = "1.14.0.dev";
name = "tahoe-lafs-${version}";
src = fetchFromGitHub {
owner = "LeastAuthority";
repo = "tahoe-lafs";
# HEAD of an integration branch for all of the storage plugin stuff. Last
# updated August 20th 2019.
rev = "ba2f31f5f3719c7cf9f621852571e89ab445bf61";
sha256 = "02c3zghx1951zw1912c2qf9s7n41wsbz8ld5700myak69nvkh0gs";
# updated August 23 2019.
rev = "d4b5de2e08e26ad2cc14265a5993be2ecc791d5b";
sha256 = "1l2da13w43zzwr1z262zhhq4hq3sha4zrxp7d46zmjn4ya0ixksf";
};
postPatch = ''
......@@ -26,19 +26,25 @@ buildPythonPackage rec {
do
sed -i "$i" -e"s/localhost/127.0.0.1/g"
done
sed -i 's/"zope.interface.*"/"zope.interface"/' src/allmydata/_auto_deps.py
sed -i 's/"pycrypto.*"/"pycrypto"/' src/allmydata/_auto_deps.py
'';
propagatedBuildInputs = with pythonPackages; [
twisted foolscap nevow simplejson zfec pycryptopp darcsver
setuptoolsTrial setuptoolsDarcs pycrypto pyasn1 zope_interface
service-identity pyyaml magic-wormhole treq appdirs
propagatedBuildInputs = with python.pkgs; [
twisted foolscap nevow zfec appdirs
setuptoolsTrial pyasn1 zope_interface
service-identity pyyaml magic-wormhole treq
eliot autobahn cryptography
];
eliot autobahn
checkInputs = with python.pkgs; [
hypothesis
testtools
fixtures
];
checkPhase = ''
${python}/bin/python -m twisted.trial -j4 allmydata
'';
doCheck = false;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment