git.iko.soy/typeable/nixpkgs
on master help sign in
magic-wormhole: init at 0.8.1
commitf00f4b59b0cd743db10bf0a9c89aba404841c14e authorLorenzo Manacorda <lorenzo@mailbox.org> dateMon 21 Nov 2016, 21:02 (10 years ago) parentf731ca3
4 files changed+72−1
lib/maintainers.nix+1 pkgs/tools/misc/magic-wormhole/default.nix+24 pkgs/top-level/all-packages.nix+1 pkgs/top-level/python-packages.nix+46−1
lib/maintainers.nix+1
@@ -48,6 +48,7 @@
4848 aske = "Kirill Boltaev <aske@fmap.me>";
4949 asppsa = "Alastair Pharo <asppsa@gmail.com>";
5050 astsmtl = "Alexander Tsamutali <astsmtl@yandex.ru>";
51+ asymmetric = "Lorenzo Manacorda <lorenzo@mailbox.org>";
5152 aszlig = "aszlig <aszlig@redmoonstudios.org>";
5253 auntie = "Jonathan Glines <auntieNeo@gmail.com>";
5354 avnik = "Alexander V. Nikolaev <avn@avnik.info>";
pkgs/tools/misc/magic-wormhole/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ stdenv, fetchurl, pythonPackages }:
2+
3+with stdenv.lib;
4+
5+pythonPackages.buildPythonApplication rec {
6+ name = "magic-wormhole-${version}";
7+ version = "0.8.1";
8+
9+ src = fetchurl {
10+ url = "mirror://pypi/m/magic-wormhole/${name}.tar.gz";
11+ sha256 = "1yh5nbhh9z1am2pqnb5qqyq1zjl1m7z6jnkmvry2q14qwspw9had";
12+ };
13+ checkPhase = ''
14+ ${pythonPackages.python.interpreter} -m wormhole.test.run_trial wormhole
15+ '';
16+
17+ propagatedBuildInputs = with pythonPackages; [ autobahn cffi click hkdf pynacl spake2 tqdm ];
18+ meta = {
19+ description = "Securely transfer data between computers";
20+ homepage = "https://github.com/warner/magic-wormhole";
21+ license = licenses.mit;
22+ maintainers = with maintainers; [ asymmetric ];
23+ };
24+}
pkgs/top-level/all-packages.nix+1
@@ -920,6 +920,7 @@ in
920920
921921 long-shebang = callPackage ../misc/long-shebang {};
922922
923+ magic-wormhole = callPackage ../tools/misc/magic-wormhole {};
923924 mathics = pythonPackages.mathics;
924925
925926 meson = callPackage ../development/tools/build-managers/meson { };
pkgs/top-level/python-packages.nix+46−1
@@ -12472,6 +12472,28 @@ in {
1247212472 };
1247312473 };
1247412474
12475+ hkdf = buildPythonPackage rec {
12476+ name = "hkdf-${version}";
12477+ version = "0.0.3";
12478+
12479+ src = pkgs.fetchurl {
12480+ url = "mirror://pypi/h/hkdf/${name}.tar.gz";
12481+ sha256 = "1jhxk5vhxmxxjp3zj526ry521v9inzzl8jqaaf0ma65w6k332ak2";
12482+ };
12483+
12484+ buildInputs = with self; [ nose ];
12485+
12486+ checkPhase = ''
12487+ nosetests
12488+ '';
12489+
12490+ meta = {
12491+ description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)";
12492+ homepage = "https://github.com/casebeer/python-hkdf";
12493+ license = licenses.bsd2;
12494+ };
12495+ };
12496+
1247512497 httpretty = buildPythonPackage rec {
1247612498 name = "httpretty-${version}";
1247712499 version = "0.8.10";
@@ -13784,7 +13806,6 @@ in {
1378413806 };
1378513807 };
1378613808
13787−
1378813809 m2crypto = buildPythonPackage rec {
1378913810 version = "0.24.0";
1379013811 name = "m2crypto-${version}";
@@ -23129,6 +23150,30 @@ in {
2312923150 };
2313023151 };
2313123152
23153+ spake2 = buildPythonPackage rec {
23154+ name = "spake2-${version}";
23155+ version = "0.7";
23156+
23157+ src = pkgs.fetchurl {
23158+ url = "mirror://pypi/s/spake2/${name}.tar.gz";
23159+ sha256 = "0rmplicbbid41qrvwc1ckyp211ban01ardms5yqqq16ixrc18a6j";
23160+ };
23161+
23162+ buildInputs = with self; [ pytest ];
23163+
23164+ propagatedBuildInputs = with self; [ hkdf ];
23165+
23166+ checkPhase = ''
23167+ py.test $out
23168+ '';
23169+
23170+ meta = {
23171+ description = "SPAKE2 password-authenticated key exchange library";
23172+ homepage = "http://github.com/warner/python-spake2";
23173+ license = licenses.mit;
23174+ };
23175+ };
23176+
2313223177 sqlite3dbm = buildPythonPackage rec {
2313323178 name = "sqlite3dbm-0.1.4";
2313423179 disabled = isPy3k;