depot/third_party/nixpkgs/pkgs/development/python-modules/dissononce/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
705 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 = "Python implementation for Noise Protocol Framework";
};
}