1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitLab, 5 setuptools, 6 setuptools-scm, 7 confluent-kafka, 8 msgpack, 9 swh-core, 10 swh-model, 11 pytestCheckHook, 12 pytest-mock, 13}: 14 15buildPythonPackage rec { 16 pname = "swh-journal"; 17 version = "2.0.0"; 18 pyproject = true; 19 20 src = fetchFromGitLab { 21 domain = "gitlab.softwareheritage.org"; 22 group = "swh"; 23 owner = "devel"; 24 repo = "swh-journal"; 25 tag = "v${version}"; 26 hash = "sha256-ycTB7hSjTerJOd+nEv8HbM82vPAO8P1+xooy0oN4eHw="; 27 }; 28 29 build-system = [ 30 setuptools 31 setuptools-scm 32 ]; 33 34 dependencies = [ 35 confluent-kafka 36 msgpack 37 swh-core 38 swh-model 39 ]; 40 41 pythonImportsCheck = [ "swh.journal" ]; 42 43 nativeCheckInputs = [ 44 pytestCheckHook 45 pytest-mock 46 ]; 47 48 meta = { 49 description = "Persistent logger of changes to the archive, with publish-subscribe support"; 50 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-journal"; 51 license = lib.licenses.gpl3Only; 52 maintainers = with lib.maintainers; [ ]; 53 }; 54}