nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 60 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 celery, 5 fetchFromGitHub, 6 funcy, 7 kombu, 8 pytest-celery, 9 pytest-mock, 10 pytest-test-utils, 11 pytestCheckHook, 12 setuptools-scm, 13 shortuuid, 14}: 15 16buildPythonPackage rec { 17 pname = "dvc-task"; 18 version = "0.40.2"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "iterative"; 23 repo = "dvc-task"; 24 tag = version; 25 hash = "sha256-bRQJLncxCigYPEtlvKjUtKqhcBkB7erEtoJQ30yGamE="; 26 }; 27 28 build-system = [ setuptools-scm ]; 29 30 dependencies = [ 31 celery 32 funcy 33 kombu 34 shortuuid 35 ]; 36 37 nativeCheckInputs = [ 38 pytest-celery 39 pytest-mock 40 pytest-test-utils 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ "dvc_task" ]; 45 46 disabledTests = [ 47 # Test is flaky 48 "test_start_already_exists" 49 # Tests require a Docker setup 50 "celery_setup_worker" 51 ]; 52 53 meta = { 54 description = "Celery task queue used in DVC"; 55 homepage = "https://github.com/iterative/dvc-task"; 56 changelog = "https://github.com/iterative/dvc-task/releases/tag/${version}"; 57 license = lib.licenses.asl20; 58 maintainers = with lib.maintainers; [ fab ]; 59 }; 60}