nixpkgs/pkgs/development/python-modules/dvc-task/default.nix
2024-03-29 23:45:49 +01:00

60 lines
1.0 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; [ ];
};
}