Merge pull request #35175 from dotlambda/magic-wormhole

pythonPackages.magic-wormhole: 0.10.4 -> 0.10.5
This commit is contained in:
Robert Schütz
2018-02-27 08:58:36 +01:00
committed by GitHub
4 changed files with 70 additions and 39 deletions

View File

@@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, twisted, mock }:
buildPythonPackage rec {
pname = "magic-wormhole-transit-relay";
version = "0.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "faac36266c72745102a1a8b93abc5b25feed1be5bca7b29968a156966c312567";
};
propagatedBuildInputs = [ twisted ];
checkInputs = [ mock ];
checkPhase = ''
python -m twisted.trial wormhole_transit_relay
'';
meta = with lib; {
description = "Transit Relay server for Magic-Wormhole";
homepage = https://github.com/warner/magic-wormhole-transit-relay;
license = licenses.mit;
};
}

View File

@@ -2,37 +2,38 @@
, buildPythonPackage
, fetchPypi
, pythonAtLeast
, python
, spake2
, pynacl
, six
, attrs
, twisted
, autobahn
, automat
, hkdf
, tqdm
, click
, humanize
, ipaddress
, txtorcon
, nettools
, glibcLocales
, autobahn
, cffi
, click
, hkdf
, pynacl
, spake2
, tqdm
, python
, mock
, ipaddress
, humanize
, pyopenssl
, service-identity
, txtorcon
, magic-wormhole-transit-relay
}:
buildPythonPackage rec {
pname = "magic-wormhole";
version = "0.10.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "9558ea1f3551e535deec3462cd5c8391cb32ebb12ecd8b40b36861dbee4917ee";
};
checkInputs = [ mock ];
checkInputs = [ mock magic-wormhole-transit-relay ];
buildInputs = [ nettools glibcLocales ];
propagatedBuildInputs = [ autobahn cffi click hkdf pynacl spake2 tqdm ipaddress humanize pyopenssl service-identity txtorcon ];
propagatedBuildInputs = [ spake2 pynacl six attrs twisted autobahn automat hkdf tqdm click humanize ipaddress txtorcon ];
postPatch = ''
sed -i -e "s|'ifconfig'|'${nettools}/bin/ifconfig'|" src/wormhole/ipaddrs.py

View File

@@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, hkdf, pytest }:
buildPythonPackage rec {
pname = "spake2";
version = "0.8";
src = fetchPypi {
inherit pname version;
sha256 = "c17a614b29ee4126206e22181f70a406c618d3c6c62ca6d6779bce95e9c926f4";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ hkdf ];
checkPhase = ''
py.test $out
'';
meta = with lib; {
description = "SPAKE2 password-authenticated key exchange library";
homepage = "http://github.com/warner/python-spake2";
license = licenses.mit;
};
}