12 buildPythonPackage rec {
13 pname = "celery-singleton";
17 src = fetchFromGitHub {
19 repo = "celery-singleton";
21 hash = "sha256-fHlakxxjYIADELZdxIj6rvsZ/+1QfnKvAg3w5cdzvDc=";
25 # Disable coverage reporting in tests
26 substituteInPlace setup.cfg \
27 --replace "--cov" "" \
28 --replace "--no-cov-on-fail" ""
32 # chore(poetry): use poetry-core
33 # https://github.com/steinitzu/celery-singleton/pull/54
35 name = "use-poetry-core.patch";
36 url = "https://github.com/steinitzu/celery-singleton/pull/54/commits/634a001c92a1dff1fae513fc95d733ea9b87e4cf.patch";
37 hash = "sha256-lXN4khwyL96pWyBS+iuSkGEkegv4HxYtym+6JUcPa94=";
45 propagatedBuildInputs = [
55 pytestFlagsArray = [ "tests" ];
57 # Tests require a running Redis backend
63 "TestRaiseOnDuplicateConfig"
67 pythonImportsCheck = [ "celery_singleton" ];
70 description = "Seamlessly prevent duplicate executions of celery tasks";
71 homepage = "https://github.com/steinitzu/celery-singleton";
72 changelog = "https://github.com/steinitzu/celery-singleton/blob/${src.rev}/CHANGELOG.md";
73 license = licenses.mit;
74 maintainers = with maintainers; [ onny ];