Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools-scm, 7 kombu, 8 shortuuid, 9 celery, 10 funcy, 11 pytest-celery, 12 pytest-mock, 13 pytest-test-utils, 14 pytestCheckHook, 15}: 16 17buildPythonPackage rec { 18 pname = "dvc-task"; 19 version = "0.4.0"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.8"; 23 24 src = fetchFromGitHub { 25 owner = "iterative"; 26 repo = "dvc-task"; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-zSPv+eMGSsGXKtgi9r4EiGY1ZURXeJXWBKvR2GnfP8I="; 29 }; 30 31 build-system = [ setuptools-scm ]; 32 33 dependencies = [ 34 kombu 35 shortuuid 36 celery 37 funcy 38 ]; 39 40 nativeCheckInputs = [ 41 pytest-celery 42 pytest-mock 43 pytest-test-utils 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ "dvc_task" ]; 48 49 meta = with lib; { 50 description = "Celery task queue used in DVC"; 51 homepage = "https://github.com/iterative/dvc-task"; 52 changelog = "https://github.com/iterative/dvc-task/releases/tag/${version}"; 53 license = licenses.asl20; 54 maintainers = [ ]; 55 }; 56}