magic-wormhole: move to python-packages
since it is actually a library.
This commit is contained in:
parent
51645f8f47
commit
18637d877a
26
pkgs/development/python-modules/magic-wormhole/default.nix
Normal file
26
pkgs/development/python-modules/magic-wormhole/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
@ -26273,6 +26273,7 @@ in {
|
||||
};
|
||||
});
|
||||
|
||||
magic-wormhole = callPackage ../development/python-modules/magic-wormhole {};
|
||||
|
||||
wsgiproxy2 = buildPythonPackage rec {
|
||||
name = "WSGIProxy2-0.4.2";
|
||||
|
Loading…
Reference in New Issue
Block a user