nixpkgs/pkgs/development/python-modules/dvc-task/default.nix
2023-02-24 23:54:59 +01:00

62 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.1.11";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-0KfH0/rghq+03sFLaR8lsIi4TJuwwca/YhQgILCdHq8=";
};
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; [ ];
};
}