2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, spake2
|
|
|
|
, pynacl
|
|
|
|
, six
|
|
|
|
, attrs
|
|
|
|
, twisted
|
|
|
|
, autobahn
|
|
|
|
, automat
|
|
|
|
, hkdf
|
|
|
|
, tqdm
|
|
|
|
, click
|
|
|
|
, humanize
|
|
|
|
, txtorcon
|
|
|
|
, nettools
|
|
|
|
, mock
|
|
|
|
, magic-wormhole-transit-relay
|
|
|
|
, magic-wormhole-mailbox-server
|
2022-09-09 14:08:57 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "magic-wormhole";
|
|
|
|
version = "0.12.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0q41j99718y7m95zg1vaybnsp31lp6lhyqkbv4yqz5ys6jixh3qv";
|
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
spake2
|
|
|
|
pynacl
|
|
|
|
six
|
|
|
|
attrs
|
|
|
|
twisted
|
|
|
|
autobahn
|
|
|
|
automat
|
|
|
|
hkdf
|
|
|
|
tqdm
|
|
|
|
click
|
|
|
|
humanize
|
|
|
|
txtorcon
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ autobahn.optional-dependencies.twisted
|
|
|
|
++ twisted.optional-dependencies.tls;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
mock
|
|
|
|
magic-wormhole-transit-relay
|
|
|
|
magic-wormhole-mailbox-server
|
2022-09-09 14:08:57 +00:00
|
|
|
pytestCheckHook
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Expected: (<class 'wormhole.errors.WrongPasswordError'>,) Got: Failure instance: Traceback (failure with no frames): <class 'wormhole.errors.LonelyError'>:
|
|
|
|
"test_welcome"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
postPatch = lib.optionalString stdenv.isLinux ''
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -i -e "s|'ifconfig'|'${nettools}/bin/ifconfig'|" src/wormhole/ipaddrs.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 docs/wormhole.1 $out/share/man/man1/wormhole.1
|
|
|
|
'';
|
|
|
|
|
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";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/magic-wormhole/magic-wormhole";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = with maintainers; [ asymmetric SuperSandro2000 ];
|
2021-10-04 12:37:57 +00:00
|
|
|
mainProgram = "wormhole";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|