depot/third_party/nixpkgs/pkgs/development/python-modules/dvc-task/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

56 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools-scm,
kombu,
shortuuid,
celery,
funcy,
pytest-celery,
pytest-mock,
pytest-test-utils,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "dvc-task";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "iterative";
repo = "dvc-task";
rev = "refs/tags/${version}";
hash = "sha256-zSPv+eMGSsGXKtgi9r4EiGY1ZURXeJXWBKvR2GnfP8I=";
};
build-system = [ setuptools-scm ];
dependencies = [
kombu
shortuuid
celery
funcy
];
nativeCheckInputs = [
pytest-celery
pytest-mock
pytest-test-utils
pytestCheckHook
];
pythonImportsCheck = [ "dvc_task" ];
meta = with lib; {
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 = licenses.asl20;
maintainers = with maintainers; [ ];
};
}