Commit df4895cb authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

python312Packages.swh-journal: init at 2.0.0

parent 0d3a1cd8
Loading
Loading
Loading
Loading
+54 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitLab,
  setuptools,
  setuptools-scm,
  confluent-kafka,
  msgpack,
  swh-core,
  swh-model,
  pytestCheckHook,
  pytest-mock,
}:

buildPythonPackage rec {
  pname = "swh-journal";
  version = "2.0.0";
  pyproject = true;

  src = fetchFromGitLab {
    domain = "gitlab.softwareheritage.org";
    group = "swh";
    owner = "devel";
    repo = "swh-journal";
    tag = "v${version}";
    hash = "sha256-ycTB7hSjTerJOd+nEv8HbM82vPAO8P1+xooy0oN4eHw=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    confluent-kafka
    msgpack
    swh-core
    swh-model
  ];

  pythonImportsCheck = [ "swh.journal" ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-mock
  ];

  meta = {
    description = "Persistent logger of changes to the archive, with publish-subscribe support";
    homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-journal";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ drupol ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -16663,6 +16663,8 @@ self: super: with self; {
  swh-core = callPackage ../development/python-modules/swh-core { };
  swh-journal = callPackage ../development/python-modules/swh-journal { };
  swh-model = callPackage ../development/python-modules/swh-model { };
  swh-objstorage = callPackage ../development/python-modules/swh-objstorage { };