Files
nixpkgs/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02: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 = with lib; {
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 = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}