git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.consonance: init at 0.1.3
commitd8d34797d7fe82c7a5b0d1e6c756237cd09e78ef authorMaximilian Bosch <maximilian@mbosch.me> dateThu 5 Dec 2019, 20:56 (7 years ago) parentd170246
2 files changed+31
pkgs/development/python-modules/consonance/default.nix+29 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/consonance/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ buildPythonPackage, lib, fetchFromGitHub, pytest, dissononce, python-axolotl-curve25519
2+, transitions, protobuf, nose
3+}:
4+
5+buildPythonPackage rec {
6+ pname = "consonance";
7+ version = "0.1.3";
8+
9+ src = fetchFromGitHub {
10+ owner = "tgalal";
11+ repo = "consonance";
12+ rev = version;
13+ sha256 = "1ifs0fq6i41rdna1kszv5sf87qbqx1mn98ffyx4xhw4i9r2grrjv";
14+ };
15+
16+ checkInputs = [ nose ];
17+ checkPhase = ''
18+ # skipping online test as it requires network with uplink
19+ nosetests tests/test_handshakes_offline.py
20+ '';
21+
22+ propagatedBuildInputs = [ dissononce python-axolotl-curve25519 transitions protobuf ];
23+
24+ meta = with lib; {
25+ homepage = "https://pypi.org/project/consonance/";
26+ license = licenses.gpl3;
27+ description = "WhatsApp's handshake implementation using Noise Protocol";
28+ };
29+}
pkgs/top-level/python-packages.nix+2
@@ -1718,6 +1718,8 @@ in {
17181718
17191719 configshell = callPackage ../development/python-modules/configshell { };
17201720
1721+ consonance = callPackage ../development/python-modules/consonance { };
1722+
17211723 constantly = callPackage ../development/python-modules/constantly { };
17221724
17231725 cornice = callPackage ../development/python-modules/cornice { };