Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.2 kB · 112 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113{ lib, arrow, blessed, bson, buildPythonPackage, croniter, django, django-picklefield, django-redis, fetchFromGitHub, hiredis, pkgs, poetry-core, pytest-django, pytestCheckHook, stdenv,}:
buildPythonPackage rec { pname = "django-q2"; version = "1.7.6"; pyproject = true;
src = fetchFromGitHub { owner = "django-q2"; repo = "django-q2"; tag = "v${version}"; hash = "sha256-L2IrLKszo2UCpeioAwI8c636KwQgNCEJjHUDY2Ctv4A="; };
postPatch = '' substituteInPlace django_q/tests/settings.py \ --replace-fail "HiredisParser" "_HiredisParser" '';
build-system = [ poetry-core ];
dependencies = [ arrow bson # required for mongodb but undocumented django django-picklefield ];
nativeCheckInputs = [ blessed croniter django-redis # pyredis refuses to load with hiredis<3.0.0 (hiredis.overrideAttrs ( new: old: { version = "3.1.0"; src = old.src.override { tag = "v${new.version}"; hash = "sha256-ID5OJdARd2N2GYEpcYOpxenpZlhWnWr5fAClAgqEgGg="; }; } )) pytest-django pytestCheckHook ];
pythonImportsCheck = [ "django_q" ];
preCheck = '' ${pkgs.valkey}/bin/redis-server & REDIS_PID=$! '';
postCheck = '' kill $REDIS_PID '';
env = { MONGO_HOST = "127.0.0.1"; REDIS_HOST = "127.0.0.1"; };
disabledTests = [ # requires a running mongodb "test_mongo" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # fails with an assertion "test_max_rss" "test_recycle" # cannot connect to redis "test_broker" "test_custom" "test_redis" "test_redis_connection" ];
disabledTestPaths = [ "django_q/tests/test_commands.py" ];
pytestFlags = [ "-vv" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Multiprocessing distributed task queue for Django based on Django-Q"; homepage = "https://github.com/django-q2/django-q2"; changelog = "https://github.com/django-q2/django-q2/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ SuperSandro2000 ]; };}