61 lines
1,011 B
Nix
61 lines
1,011 B
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.2";
|
||
|
format = "pyproject";
|
||
|
|
||
|
disabled = pythonOlder "3.7";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "iterative";
|
||
|
repo = pname;
|
||
|
rev = version;
|
||
|
hash = "sha256-LXjfFuLifgzU+3/EevycVCR7LhYBOoN6xg4YeNo5R4M=";
|
||
|
};
|
||
|
|
||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
setuptools-scm
|
||
|
];
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
kombu
|
||
|
shortuuid
|
||
|
celery
|
||
|
funcy
|
||
|
];
|
||
|
|
||
|
checkInputs = [
|
||
|
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";
|
||
|
license = licenses.asl20;
|
||
|
maintainers = with maintainers; [ anthonyroussel ];
|
||
|
};
|
||
|
}
|