Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / dvc-task / default.nix
blob6cec59e72ac1fe6ae564fe1fd569997a5da11be1
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
16 buildPythonPackage rec {
17   pname = "dvc-task";
18   version = "0.3.0";
19   format = "pyproject";
21   disabled = pythonOlder "3.7";
23   src = fetchFromGitHub {
24     owner = "iterative";
25     repo = pname;
26     rev = "refs/tags/${version}";
27     hash = "sha256-nrE8PdvzhH7lO0flvNkGC61NOVT4aj2E2gKEDRkp+b4=";
28   };
30   SETUPTOOLS_SCM_PRETEND_VERSION = version;
32   nativeBuildInputs = [
33     setuptools-scm
34   ];
36   propagatedBuildInputs = [
37     kombu
38     shortuuid
39     celery
40     funcy
41   ];
43   nativeCheckInputs = [
44     pytest-celery
45     pytest-mock
46     pytest-test-utils
47     pytestCheckHook
48   ];
50   pythonImportsCheck = [
51     "dvc_task"
52   ];
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   };