2019-12-24 18:34:15 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy27, six, attrs, twisted, pyopenssl, service-identity, autobahn, treq, mock, pytest }:
|
2018-11-18 20:47:20 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-24 08:47:37 +02:00
|
|
|
version = "0.4.1";
|
2018-11-18 20:47:20 +01:00
|
|
|
pname = "magic-wormhole-mailbox-server";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 08:47:37 +02:00
|
|
|
sha256 = "1af10592909caaf519c00e706eac842c5e77f8d4356215fe9c61c7b2258a88fb";
|
2018-11-18 20:47:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six attrs twisted pyopenssl service-identity autobahn ];
|
|
|
|
|
2019-12-24 18:34:15 +01:00
|
|
|
# zope.interface import issue
|
|
|
|
doCheck = !isPy27;
|
|
|
|
checkInputs = [ treq mock pytest ];
|
2019-11-27 18:57:09 +01:00
|
|
|
checkPhase = ''
|
2019-12-24 18:34:15 +01:00
|
|
|
pytest
|
2019-11-27 18:57:09 +01:00
|
|
|
'';
|
|
|
|
|
2018-11-18 20:47:20 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Securely transfer data between computers";
|
|
|
|
homepage = https://github.com/warner/magic-wormhole-mailbox-server;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|