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.1.2"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "iterative"; 25 repo = pname; 26 rev = version; 27 hash = "sha256-LXjfFuLifgzU+3/EevycVCR7LhYBOoN6xg4YeNo5R4M="; 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 checkInputs = [ 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 license = licenses.asl20; 58 maintainers = with maintainers; [ anthonyroussel ]; 59 }; 60}