Files
nixpkgs/pkgs/development/python-modules/dissononce/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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