Commit 190100c4 authored by qbisi's avatar qbisi
Browse files

python312Packages.siphash24: init at 1.7

parent 6abfccb7
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
{
  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
Original line number Diff line number Diff line
@@ -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 {