2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, attrs
|
|
|
|
, twisted
|
|
|
|
, pyopenssl
|
|
|
|
, service-identity
|
|
|
|
, autobahn
|
|
|
|
, treq
|
|
|
|
, mock
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.4.1";
|
|
|
|
pname = "magic-wormhole-mailbox-server";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1af10592909caaf519c00e706eac842c5e77f8d4356215fe9c61c7b2258a88fb";
|
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
six
|
|
|
|
twisted
|
|
|
|
autobahn
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ autobahn.optional-dependencies.twisted
|
|
|
|
++ twisted.optional-dependencies.tls;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
checkInputs = [
|
|
|
|
treq
|
|
|
|
mock
|
|
|
|
twisted
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
2022-05-18 14:49:53 +00:00
|
|
|
trial -j$NIX_BUILD_CORES wormhole_mailbox_server
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Securely transfer data between computers";
|
|
|
|
homepage = "https://github.com/warner/magic-wormhole-mailbox-server";
|
|
|
|
license = licenses.mit;
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|