magic-wormhole: move to python-packages

since it is actually a library.
This commit is contained in:
Frederik Rietdijk 2016-11-25 09:12:23 +01:00
parent 51645f8f47
commit 18637d877a
4 changed files with 27 additions and 25 deletions

View File

@ -0,0 +1,26 @@
{ fetchurl, lib, buildPythonPackage, python, autobahn
, cffi, click, hkdf, pynacl, spake2, tqdm }:
buildPythonPackage rec {
name = "magic-wormhole-${version}";
version = "0.8.1";
src = fetchurl {
url = "mirror://pypi/m/magic-wormhole/${name}.tar.gz";
sha256 = "1yh5nbhh9z1am2pqnb5qqyq1zjl1m7z6jnkmvry2q14qwspw9had";
};
checkPhase = ''
${python.interpreter} -m wormhole.test.run_trial wormhole
'';
# Several test failures, network related.
doCheck = false;
propagatedBuildInputs = [ autobahn cffi click hkdf pynacl spake2 tqdm ];
meta = {
description = "Securely transfer data between computers";
homepage = "https://github.com/warner/magic-wormhole";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ asymmetric ];
};
}

View File

@ -1,24 +0,0 @@
{ stdenv, fetchurl, pythonPackages }:
with stdenv.lib;
pythonPackages.buildPythonApplication rec {
name = "magic-wormhole-${version}";
version = "0.8.1";
src = fetchurl {
url = "mirror://pypi/m/magic-wormhole/${name}.tar.gz";
sha256 = "1yh5nbhh9z1am2pqnb5qqyq1zjl1m7z6jnkmvry2q14qwspw9had";
};
checkPhase = ''
${pythonPackages.python.interpreter} -m wormhole.test.run_trial wormhole
'';
propagatedBuildInputs = with pythonPackages; [ autobahn cffi click hkdf pynacl spake2 tqdm ];
meta = {
description = "Securely transfer data between computers";
homepage = "https://github.com/warner/magic-wormhole";
license = licenses.mit;
maintainers = with maintainers; [ asymmetric ];
};
}

View File

@ -920,7 +920,6 @@ in
long-shebang = callPackage ../misc/long-shebang {};
magic-wormhole = callPackage ../tools/misc/magic-wormhole {};
mathics = pythonPackages.mathics;
meson = callPackage ../development/tools/build-managers/meson { };

View File

@ -26273,6 +26273,7 @@ in {
};
});
magic-wormhole = callPackage ../development/python-modules/magic-wormhole {};
wsgiproxy2 = buildPythonPackage rec {
name = "WSGIProxy2-0.4.2";