Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 81 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, buildPythonPackage, fetchFromGitHub, setuptools, django, django-stubs-ext, typing-extensions, mysqlclient, psycopg, dj-database-url, django-rq, fakeredis, pytestCheckHook, pytest-django,}:
buildPythonPackage rec { pname = "django-tasks"; version = "0.7.0"; pyproject = true;
src = fetchFromGitHub { owner = "RealOrangeOne"; repo = "django-tasks"; tag = version; hash = "sha256-AWsqAvn11uklrFXtiV2a6fR3owZ02osEzrdHZgDKkOM="; };
build-system = [ setuptools ];
dependencies = [ django django-stubs-ext typing-extensions ];
optional-dependencies = { mysql = [ mysqlclient ]; postgres = [ psycopg ]; };
pythonImportsCheck = [ "django_tasks" ];
nativeCheckInputs = [ dj-database-url django-rq fakeredis pytestCheckHook pytest-django ];
disabledTests = [ # AssertionError: Lists differ: [] != ['Starting worker for queues=default', ... "test_verbose_logging" # AssertionError: '' != 'Deleted 0 task result(s)' "test_doesnt_prune_new_task" # AssertionError: '' != 'Would delete 1 task result(s)' "test_dry_run" # AssertionError: '' != 'Deleted 1 task result(s)' "test_prunes_tasks" ];
preCheck = '' export DJANGO_SETTINGS_MODULE="tests.settings" '';
meta = { description = "Reference implementation and backport of background workers and tasks in Django"; homepage = "https://github.com/RealOrangeOne/django-tasks"; changelog = "https://github.com/RealOrangeOne/django-tasks/releases/tag/${version}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ GaetanLepage ]; };}