Files
nixpkgs/pkgs/development/python-modules/chacha20poly1305-reuseable/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

63 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
cython,
poetry-core,
setuptools,
# propagates
cryptography,
# tests
pytest-cov-stub,
pytestCheckHook,
}:
let
pname = "chacha20poly1305-reuseable";
version = "0.13.2";
in
buildPythonPackage {
inherit pname version;
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bdraco";
repo = "chacha20poly1305-reuseable";
tag = "v${version}";
hash = "sha256-i6bhqfYo+gFTf3dqOBSQqGN4WPqbUR05StdwZvrVckI=";
};
nativeBuildInputs = [
cython
poetry-core
setuptools
];
pythonRelaxDeps = [ "cryptography" ];
propagatedBuildInputs = [ cryptography ];
pythonImportsCheck = [ "chacha20poly1305_reuseable" ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
meta = {
description = "ChaCha20Poly1305 that is reuseable for asyncio";
homepage = "https://github.com/bdraco/chacha20poly1305-reuseable";
changelog = "https://github.com/bdraco/chacha20poly1305-reuseable/blob/v${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hexa ];
};
}