3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/dvc-task/default.nix
2022-12-29 20:50:02 +01:00

61 lines
996 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; [ ];
};
}