Files
nixpkgs/pkgs/development/python-modules/siphash24/default.nix
2025-09-10 03:48:11 +00:00

53 lines
992 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
meson,
meson-python,
cython,
pkg-config,
c-siphash,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "1.8";
pname = "siphash24";
pyproject = true;
src = fetchFromGitHub {
owner = "dnicolodi";
repo = "python-siphash24";
tag = "v${version}";
hash = "sha256-51LgmB30MDTBRoZttIESopWMdrozvLFwlxYELmqu5UQ=";
};
nativeBuildInputs = [ pkg-config ];
build-system = [
meson
meson-python
cython
];
buildInputs = [
c-siphash
];
pythonImportsCheck = [
"siphash24"
];
enabledTestPaths = [ "test.py" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
homepage = "https://github.com/dnicolodi/python-siphash24";
description = "Streaming-capable SipHash Implementation";
changelog = "https://github.com/dnicolodi/python-siphash24/releases/tag/${src.tag}";
license = lib.licenses.lgpl2Plus;
maintainers = with lib.maintainers; [ qbisi ];
};
}