nixpkgs/pkgs/development/python-modules/django-q2/default.nix
Martin Weinelt ee3fc45f97 python3Packages.django-q2: 1.8.0 -> 1.9.0
https://github.com/django-q2/django-q2/releases/tag/v1.9.0

This commit was automatically generated using update-python-libraries.
2026-02-01 16:43:09 +01:00

90 lines
1.7 KiB
Nix

{
lib,
arrow,
blessed,
bson,
buildPythonPackage,
croniter,
django,
django-picklefield,
django-redis,
fetchFromGitHub,
hiredis,
poetry-core,
pytest-django,
pytestCheckHook,
redisTestHook,
stdenv,
}:
buildPythonPackage rec {
pname = "django-q2";
version = "1.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "django-q2";
repo = "django-q2";
tag = "v${version}";
hash = "sha256-xqRm9vv/lD9HLX+ekdPgIGGwr5H7QZBATPx0CCjQAmw=";
};
build-system = [
poetry-core
];
dependencies = [
arrow
bson # required for mongodb but undocumented
django
django-picklefield
];
nativeCheckInputs = [
blessed
croniter
django-redis
hiredis
pytest-django
pytestCheckHook
redisTestHook
];
pythonImportsCheck = [ "django_q" ];
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/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
}