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