Unverified Commit b9ca2db4 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.rq: 2.7 -> 2.8 (#512359)

parents 2b9811b1 eb1482cb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -53,6 +53,11 @@ buildPythonPackage (finalAttrs: {
    export DJANGO_SETTINGS_MODULE=tests.settings
  '';

  disabledTests = [
    # ValueError: Job ID must only contain letters, numbers, underscores and dashes
    "test_scheduled_jobs"
  ];

  meta = {
    description = "Simple app that provides django integration for RQ (Redis Queue)";
    homepage = "https://github.com/rq/django-rq";
+22 −7
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  fetchFromGitHub,
  buildPythonPackage,
  pythonAtLeast,

  # build-system
  hatchling,
@@ -22,14 +23,15 @@

buildPythonPackage (finalAttrs: {
  pname = "rq";
  version = "2.7";
  version = "2.8";
  pyproject = true;
  __structuredAttrs = true;

  src = fetchFromGitHub {
    owner = "rq";
    repo = "rq";
    tag = "v${finalAttrs.version}";
    hash = "sha256-332K+n3mWf+k7/QvIFJFhuDXqd1t2p8ZVv/l+Y167Bk=";
    hash = "sha256-ZO67rsqub9hBUt4XMqrx+P7Dj1dEKD9zp4O5x1Kehe0=";
  };

  build-system = [ hatchling ];
@@ -57,7 +59,20 @@ buildPythonPackage (finalAttrs: {
  # redisTestHook does not work on darwin-x86_64
  doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64);

  disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
  disabledTests =
    lib.optionals
      ((pythonAtLeast "3.14") && stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)
      [
        # AssertionError
        "test_create_job_with_ttl_should_expire"
        "test_execution_order_with_dual_dependency"
        "test_execution_order_with_sole_dependency"
        "test_sigint_handling"
        "test_successful_job_repeat"
        "test_suspend_worker_execution"
        "test_work"
      ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      # PermissionError: [Errno 13] Permission denied: '/tmp/rq-tests.txt'
      "test_deleted_jobs_arent_executed"
      "test_suspend_worker_execution"