Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 68 lines
Nix
at flake-libs
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ lib, buildPythonPackage, fetchFromGitHub, setuptools, django, django-stubs-ext, typing-extensions, mysqlclient, psycopg, dj-database-url, python,}:
buildPythonPackage rec { pname = "django-tasks"; version = "0.6.1"; pyproject = true;
src = fetchFromGitHub { owner = "RealOrangeOne"; repo = "django-tasks"; tag = version; hash = "sha256-MLztM4jVQV2tHPcIExbPGX+hCHSTqaQJeTbQqaVA3V4="; };
build-system = [ setuptools ];
dependencies = [ django django-stubs-ext typing-extensions ];
optional-dependencies = { mysql = [ mysqlclient ]; postgres = [ psycopg ]; };
pythonImportsCheck = [ "django_tasks" ];
nativeCheckInputs = [ dj-database-url ];
checkPhase = '' runHook preCheck
export DJANGO_SETTINGS_MODULE="tests.settings" ${python.interpreter} -m manage test --noinput
runHook postCheck '';
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 ]; };}