Files
nixpkgs/pkgs/development/python-modules/dvc-task/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

64 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
celery,
fetchFromGitHub,
funcy,
kombu,
pytest-celery,
pytest-mock,
pytest-test-utils,
pytestCheckHook,
pythonOlder,
setuptools-scm,
shortuuid,
}:
buildPythonPackage rec {
pname = "dvc-task";
version = "0.40.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "iterative";
repo = "dvc-task";
tag = version;
hash = "sha256-bRQJLncxCigYPEtlvKjUtKqhcBkB7erEtoJQ30yGamE=";
};
build-system = [ setuptools-scm ];
dependencies = [
celery
funcy
kombu
shortuuid
];
nativeCheckInputs = [
pytest-celery
pytest-mock
pytest-test-utils
pytestCheckHook
];
pythonImportsCheck = [ "dvc_task" ];
disabledTests = [
# Test is flaky
"test_start_already_exists"
# Tests require a Docker setup
"celery_setup_worker"
];
meta = {
description = "Celery task queue used in DVC";
homepage = "https://github.com/iterative/dvc-task";
changelog = "https://github.com/iterative/dvc-task/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}