summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/dissononce/default.nix
blob: 115b1866e1aecfe061f1fa36ec1ac7561c9de888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pytest,
  cryptography,
  transitions,
}:

buildPythonPackage rec {
  pname = "dissononce";
  version = "0.34.3";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "tgalal";
    repo = "dissononce";
    rev = version;
    sha256 = "0hn64qfr0d5npmza6rjyxwwp12k2z2y1ma40zpl104ghac6g3mbs";
  };

  nativeCheckInputs = [ pytest ];
  checkPhase = ''
    HOME=$(mktemp -d) py.test tests/
  '';

  propagatedBuildInputs = [
    cryptography
    transitions
  ];

  meta = {
    homepage = "https://pypi.org/project/dissononce/";
    license = lib.licenses.mit;
    description = "Python implementation for Noise Protocol Framework";
  };
}