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
Branches
No related tags found
No related merge requests found
{ fetchFromGitHub, nettools, pythonPackages, buildPythonPackage { fetchFromGitHub, nettools, python
, twisted, foolscap, nevow, simplejson, zfec, pycryptopp, darcsver , twisted, foolscap, nevow, zfec
, setuptoolsTrial, setuptoolsDarcs, pycrypto, pyasn1, zope_interface , setuptoolsTrial, pyasn1, zope_interface
, service-identity, pyyaml, magic-wormhole, treq, appdirs , service-identity, pyyaml, magic-wormhole, treq, appdirs
, eliot, autobahn , eliot, autobahn, cryptography
}: }:
buildPythonPackage rec { python.pkgs.buildPythonPackage rec {
version = "1.14.0.dev"; version = "1.14.0.dev";
name = "tahoe-lafs-${version}"; name = "tahoe-lafs-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "LeastAuthority"; owner = "LeastAuthority";
repo = "tahoe-lafs"; repo = "tahoe-lafs";
# HEAD of an integration branch for all of the storage plugin stuff. Last # HEAD of an integration branch for all of the storage plugin stuff. Last
# updated August 20th 2019. # updated August 23 2019.
rev = "ba2f31f5f3719c7cf9f621852571e89ab445bf61"; rev = "d4b5de2e08e26ad2cc14265a5993be2ecc791d5b";
sha256 = "02c3zghx1951zw1912c2qf9s7n41wsbz8ld5700myak69nvkh0gs"; sha256 = "1l2da13w43zzwr1z262zhhq4hq3sha4zrxp7d46zmjn4ya0ixksf";
}; };
postPatch = '' postPatch = ''
...@@ -26,19 +26,25 @@ buildPythonPackage rec { ...@@ -26,19 +26,25 @@ buildPythonPackage rec {
do do
sed -i "$i" -e"s/localhost/127.0.0.1/g" sed -i "$i" -e"s/localhost/127.0.0.1/g"
done 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; [ propagatedBuildInputs = with python.pkgs; [
twisted foolscap nevow simplejson zfec pycryptopp darcsver twisted foolscap nevow zfec appdirs
setuptoolsTrial setuptoolsDarcs pycrypto pyasn1 zope_interface setuptoolsTrial pyasn1 zope_interface
service-identity pyyaml magic-wormhole treq appdirs 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; doCheck = false;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment