depot/third_party/nixpkgs/pkgs/development/python-modules/dissononce/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

27 lines
684 B
Nix

{ 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 = with lib; {
homepage = "https://pypi.org/project/dissononce/";
license = licenses.mit;
description = "A python implementation for Noise Protocol Framework";
};
}