2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
|
|
|
, kombu
|
|
|
|
, shortuuid
|
|
|
|
, celery
|
|
|
|
, funcy
|
|
|
|
, pytest-celery
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-test-utils
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-task";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.3.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
|
|
|
repo = pname;
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-nrE8PdvzhH7lO0flvNkGC61NOVT4aj2E2gKEDRkp+b4=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
kombu
|
|
|
|
shortuuid
|
|
|
|
celery
|
|
|
|
funcy
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
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";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/iterative/dvc-task/releases/tag/${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.asl20;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|