Merge pull request #185317 from anthonyroussel/dvc-task

This commit is contained in:
Sandro 2022-08-07 11:19:31 +02:00 committed by GitHub
commit 62a93cfc6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,60 @@
{ 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.1.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = version;
hash = "sha256-LXjfFuLifgzU+3/EevycVCR7LhYBOoN6xg4YeNo5R4M=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
kombu
shortuuid
celery
funcy
];
checkInputs = [
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";
license = licenses.asl20;
maintainers = with maintainers; [ anthonyroussel ];
};
}

View File

@ -2701,6 +2701,8 @@ in {
dvc-render = callPackage ../development/python-modules/dvc-render { };
dvc-task = callPackage ../development/python-modules/dvc-task { };
dvclive = callPackage ../development/python-modules/dvclive { };
dwdwfsapi = callPackage ../development/python-modules/dwdwfsapi { };