python312Packages.siphash24: init at 1.7

This commit is contained in:
qbisi
2025-03-03 04:09:16 +08:00
parent 6abfccb7dd
commit 190100c498
2 changed files with 56 additions and 2 deletions
@@ -0,0 +1,52 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
meson,
meson-python,
cython,
pkg-config,
c-siphash,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "1.7";
pname = "siphash24";
pyproject = true;
src = fetchFromGitHub {
owner = "dnicolodi";
repo = "python-siphash24";
tag = "v${version}";
hash = "sha256-/7XrRD4e7jLTUY/8mBbJ4dSo5P6pj8GRpSreIOZpKp0=";
};
nativeBuildInputs = [ pkg-config ];
build-system = [
meson
meson-python
cython
];
buildInputs = [
c-siphash
];
pythonImportsCheck = [
"siphash24"
];
pytestFlagsArray = [ "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 ];
};
}
+4 -2
View File
@@ -15146,10 +15146,12 @@ self: super: with self; {
sip = callPackage ../development/python-modules/sip { };
siphashc = callPackage ../development/python-modules/siphashc { };
sip4 = callPackage ../development/python-modules/sip/4.x.nix { };
siphash24 = callPackage ../development/python-modules/siphash24 { };
siphashc = callPackage ../development/python-modules/siphashc { };
sipyco = callPackage ../development/python-modules/sipyco { };
sirius = toPythonModule (pkgs.sirius.override {