python312Packages.swh-scheduler: init at 3.1.0

This commit is contained in:
Pol Dellaiera
2025-04-01 14:29:58 +02:00
parent 4e91a45778
commit 673b83cc73
3 changed files with 91 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
python3Packages.swh-model
python3Packages.swh-objstorage
python3Packages.swh-scanner
python3Packages.swh-scheduler
python3Packages.swh-storage
python3Packages.swh-web-client
],

View File

@@ -0,0 +1,88 @@
{
lib,
buildPythonPackage,
fetchFromGitLab,
setuptools,
setuptools-scm,
celery,
flask,
humanize,
importlib-metadata,
pika,
psycopg,
tabulate,
swh-storage,
plotille,
postgresql,
postgresqlTestHook,
pytestCheckHook,
pytest-mock,
pytest-postgresql,
pytest-shared-session-scope,
pytest-xdist,
requests-mock,
simpy,
swh-journal,
types-python-dateutil,
types-pyyaml,
types-requests,
}:
buildPythonPackage rec {
pname = "swh-scheduler";
version = "3.1.0";
pyproject = true;
src = fetchFromGitLab {
domain = "gitlab.softwareheritage.org";
group = "swh";
owner = "devel";
repo = "swh-scheduler";
tag = "v${version}";
hash = "sha256-YpMHeZVHK8IPIiuBaPNR0D/yB9lIQ3DK7NEAiBmjWpA=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
celery
flask
humanize
importlib-metadata
pika
psycopg
tabulate
swh-storage
];
pythonImportsCheck = [ "swh.scheduler" ];
nativeCheckInputs = [
plotille
postgresql
postgresqlTestHook
pytestCheckHook
pytest-mock
pytest-postgresql
pytest-shared-session-scope
pytest-xdist
requests-mock
simpy
swh-journal
types-python-dateutil
types-pyyaml
types-requests
];
disabledTests = [ "test_setup_log_handler_with_env_configuration" ];
meta = {
description = "Job scheduler for the Software Heritage project";
homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-scheduler";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ drupol ];
};
}

View File

@@ -16675,6 +16675,8 @@ self: super: with self; {
swh-scanner = callPackage ../development/python-modules/swh-scanner { };
swh-scheduler = callPackage ../development/python-modules/swh-scheduler { };
swh-storage = callPackage ../development/python-modules/swh-storage { };
swh-web-client = callPackage ../development/python-modules/swh-web-client { };