1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, setuptools-scm 6, kombu 7, shortuuid 8, celery 9, funcy 10, pytest-celery 11, pytest-mock 12, pytest-test-utils 13, pytestCheckHook 14}: 15 16buildPythonPackage rec { 17 pname = "dvc-task"; 18 version = "0.3.0"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "iterative"; 25 repo = pname; 26 rev = "refs/tags/${version}"; 27 hash = "sha256-nrE8PdvzhH7lO0flvNkGC61NOVT4aj2E2gKEDRkp+b4="; 28 }; 29 30 SETUPTOOLS_SCM_PRETEND_VERSION = version; 31 32 nativeBuildInputs = [ 33 setuptools-scm 34 ]; 35 36 propagatedBuildInputs = [ 37 kombu 38 shortuuid 39 celery 40 funcy 41 ]; 42 43 nativeCheckInputs = [ 44 pytest-celery 45 pytest-mock 46 pytest-test-utils 47 pytestCheckHook 48 ]; 49 50 pythonImportsCheck = [ 51 "dvc_task" 52 ]; 53 54 meta = with lib; { 55 description = "Celery task queue used in DVC"; 56 homepage = "https://github.com/iterative/dvc-task"; 57 changelog = "https://github.com/iterative/dvc-task/releases/tag/${version}"; 58 license = licenses.asl20; 59 maintainers = with maintainers; [ ]; 60 }; 61}