Unverified Commit b93e42b9 authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

python3Packages.django-q: drop

parent 0fb39c5a
Loading
Loading
Loading
Loading
+0 −93
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  arrow,
  blessed,
  buildPythonPackage,
  croniter,
  django,
  django-picklefield,
  django-redis,
  fetchFromGitHub,
  future,
  pkgs,
  poetry-core,
  pytest-django,
  pytest-mock,
  pytestCheckHook,
  pythonOlder,
  redis,
  setuptools,
}:

buildPythonPackage rec {
  pname = "django-q";
  version = "1.3.9";
  pyproject = true;

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "Koed00";
    repo = "django-q";
    rev = "refs/tags/v${version}";
    hash = "sha256-gFSrAl3QGoJEJfvTTvLQgViPPjeJ6BfvgEwgLLo+uAA=";
  };

  patches = [ ./pep-621.patch ];

  build-system = [
    poetry-core
  ];

  pythonRelaxDeps = [
    "redis"
  ];

  dependencies = [
    django-picklefield
    arrow
    blessed
    django
    future
    setuptools # for pkg_resources
  ];

  nativeCheckInputs = [
    croniter
    django-redis
    pytest-django
    pytest-mock
    pytestCheckHook
  ] ++ django-redis.optional-dependencies.hiredis;

  pythonImportsCheck = [ "django_q" ];

  preCheck = ''
    ${pkgs.redis}/bin/redis-server &
    REDIS_PID=$!
  '';

  postCheck = ''
    kill $REDIS_PID
  '';

  # don't bother with two more servers to test
  disabledTests = [
    "test_disque"
    "test_mongo"
  ];

  doCheck = !stdenv.hostPlatform.isDarwin;

  meta = with lib; {
    description = "Multiprocessing distributed task queue for Django";
    homepage = "https://django-q.readthedocs.org";
    changelog = "https://github.com/Koed00/django-q/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ gador ];
    # django-q is unmaintained at the moment
    # https://github.com/Koed00/django-q/issues/733
    broken = lib.versionAtLeast redis.version "5";
  };
}
+0 −24
Original line number Diff line number Diff line
diff --git a/pyproject.toml b/pyproject.toml
index 9a83e90..07068ac 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -67,13 +67,15 @@ pytest-cov = "^2.12.0"
 black = { version = "^21.5b1", allow-prereleases = true }
 isort = {extras = ["requirements_deprecated_finder"], version = "^5.8.0"}
 
-[tool.poetry.extras]
+[build-system]
 requires = ["poetry_core>=1.0.0"]
-build-backend = ["poetry.core.masonry.api"]
+build-backend = "poetry.core.masonry.api"
+
+[tool.poetry.extras]
 testing = ["django-redis", "croniter", "hiredis", "psutil", "iron-mq", "boto3", "pymongo"]
 rollbar = ["django-q-rollbar"]
 sentry = ["django-q-sentry"]
 
 [tool.isort]
 profile = "black"
-multi_line_output = 3
\ No newline at end of file
+multi_line_output = 3
+1 −0
Original line number Diff line number Diff line
@@ -168,6 +168,7 @@ mapAliases ({
  django-mysql = throw "django-mysql has been removed, since it was an unused leaf package"; # added 2024-07-02
  django_nose = django-nose; # added 2023-07-25
  django-nose = throw "django-nose has been removed since it has not been maintained and there are no dependent packages"; # added 2024-05-21
  django-q = throw "django-q has been removed because it is unmaintained and was unused"; # added 2024-12-13
  django_reversion = django-reversion; # added 2022-06-18
  django_polymorphic = django-polymorphic; # added 2022-05-24
  django_redis = django-redis; # added 2021-10-11
+0 −2
Original line number Diff line number Diff line
@@ -3570,8 +3570,6 @@ self: super: with self; {
  django-pwa = callPackage ../development/python-modules/django-pwa { };
  django-q = callPackage ../development/python-modules/django-q { };
  django-q2 = callPackage ../development/python-modules/django-q2 { };
  django-scheduler = callPackage ../development/python-modules/django-scheduler { };