depot/third_party/nixpkgs/pkgs/development/python-modules/dvc-task/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

61 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools-scm
, kombu
, shortuuid
, celery
, funcy
, pytest-celery
, pytest-mock
, pytest-test-utils
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "dvc-task";
version = "0.3.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-nrE8PdvzhH7lO0flvNkGC61NOVT4aj2E2gKEDRkp+b4=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
kombu
shortuuid
celery
funcy
];
nativeCheckInputs = [
pytest-celery
pytest-mock
pytest-test-utils
pytestCheckHook
];
pythonImportsCheck = [
"dvc_task"
];
meta = with lib; {
description = "Celery task queue used in DVC";
homepage = "https://github.com/iterative/dvc-task";
changelog = "https://github.com/iterative/dvc-task/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}