mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
60 lines
1,011 B
Nix
60 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 ];
|
|
};
|
|
}
|