python311Packages.django-q: mark as broken

This commit is contained in:
Fabian Affolter 2023-11-05 15:18:05 +01:00
parent 973c505a0f
commit 5cebbd4be4
2 changed files with 37 additions and 26 deletions

View File

@ -1,34 +1,45 @@
{ arrow { lib
, stdenv
, arrow
, blessed , blessed
, buildPythonPackage , buildPythonPackage
, croniter , croniter
, django , django
, django-redis
, django-picklefield , django-picklefield
, django-redis
, fetchFromGitHub , fetchFromGitHub
, future , future
, lib , pkgs
, poetry-core , poetry-core
, pytest-django , pytest-django
, pytest-mock , pytest-mock
, pytestCheckHook , pytestCheckHook
, pkgs , pythonOlder
, stdenv
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-q"; pname = "django-q";
version = "1.3.9"; version = "1.3.9";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Koed00"; owner = "Koed00";
repo = "django-q"; repo = "django-q";
rev = "refs/tags/v${version}";
hash = "sha256-gFSrAl3QGoJEJfvTTvLQgViPPjeJ6BfvgEwgLLo+uAA="; hash = "sha256-gFSrAl3QGoJEJfvTTvLQgViPPjeJ6BfvgEwgLLo+uAA=";
rev = "v${version}";
}; };
nativeBuildInputs = [ poetry-core ]; # fixes empty version string
# analog to https://github.com/NixOS/nixpkgs/pull/171200
patches = [
./pep-621.patch
];
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
django-picklefield django-picklefield
@ -38,10 +49,12 @@ buildPythonPackage rec {
future future
]; ];
# fixes empty version string nativeCheckInputs = [
# analog to https://github.com/NixOS/nixpkgs/pull/171200 croniter
patches = [ django-redis
./pep-621.patch pytest-django
pytest-mock
pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [
@ -57,14 +70,6 @@ buildPythonPackage rec {
kill $REDIS_PID kill $REDIS_PID
''; '';
nativeCheckInputs = [
croniter
django-redis
pytest-django
pytest-mock
pytestCheckHook
];
# don't bother with two more servers to test # don't bother with two more servers to test
disabledTests = [ disabledTests = [
"test_disque" "test_disque"
@ -76,7 +81,11 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "A multiprocessing distributed task queue for Django"; description = "A multiprocessing distributed task queue for Django";
homepage = "https://django-q.readthedocs.org"; homepage = "https://django-q.readthedocs.org";
changelog = "https://github.com/Koed00/django-q/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ gador ]; maintainers = with maintainers; [ gador ];
# django-q is unmaintained at the moment
# https://github.com/Koed00/django-q/issues/733
broken = true;
}; };
} }

View File

@ -18,12 +18,9 @@
, pytestCheckHook , pytestCheckHook
}: }:
let buildPythonPackage rec {
pname = "django-redis"; pname = "django-redis";
version = "5.4.0"; version = "5.4.0";
in
buildPythonPackage {
inherit pname version;
pyproject = true; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -45,12 +42,17 @@ buildPythonPackage {
propagatedBuildInputs = [ propagatedBuildInputs = [
django django
hiredis
lz4 lz4
msgpack msgpack
redis redis
]; ];
passthru.optional-dependencies = {
hiredis = [
redis
] ++ redis.optional-dependencies.hiredis;
};
pythonImportsCheck = [ pythonImportsCheck = [
"django_redis" "django_redis"
]; ];
@ -70,7 +72,7 @@ buildPythonPackage {
pytest-django pytest-django
pytest-mock pytest-mock
pytestCheckHook pytestCheckHook
]; ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pytestFlagsArray = [ pytestFlagsArray = [
"-W" "-W"