Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / consonance / default.nix
blobe13665cd5dc3e8d2b2f485594d9938cd920736b1
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , dissononce
6 , python-axolotl-curve25519
7 , transitions
8 , protobuf
9 , pytestCheckHook
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "consonance";
15   version = "0.1.5";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "tgalal";
22     repo = "consonance";
23     rev = version;
24     hash = "sha256-BhgxLxjKZ4dSL7DqkaoS+wBPCd1SYZomRKrtDLdGmYQ=";
25   };
27   patches = [
28     # https://github.com/tgalal/consonance/pull/9
29     (fetchpatch {
30       name = "fix-type-error.patch";
31       url = "https://github.com/tgalal/consonance/pull/9/commits/92fb78af98a18f0533ec8a286136968174fb0baf.patch";
32       hash = "sha256-wVUGxZ4W2zPyrcQPQTc85LcRUtsLbTBVzS10NEolpQY=";
33     })
34   ];
36   propagatedBuildInputs = [
37     dissononce
38     python-axolotl-curve25519
39     transitions
40     protobuf
41   ];
43   nativeCheckInputs = [
44     pytestCheckHook
45   ];
47   pytestFlagsArray = [
48     "tests/test_handshakes_offline.py"
49   ];
51   pythonImportsCheck = [
52     "consonance"
53   ];
55   meta = with lib; {
56     description = "WhatsApp's handshake implementation using Noise Protocol";
57     homepage = "https://github.com/tgalal/consonance";
58     license = licenses.gpl3Plus;
59     maintainers = with maintainers; [ ];
60   };