nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge pull request #197042 from fabaff/channels-bump

python310Packages.channels: 3.0.5 -> 4.0.0, python310Packages.daphne: 3.0.2 -> 4.0.0

authored by

Fabian Affolter and committed by
GitHub
b9a643f1 79b1ed61

+141 -53
+40 -6
pkgs/applications/office/paperless-ngx/default.nix
··· 22 22 23 23 # use paperless-ngx version of django-q 24 24 # see https://github.com/paperless-ngx/paperless-ngx/pull/1014 25 - django-q = super.django-q.overridePythonAttrs (oldAttrs: rec { 25 + django-q = super.django-q.overridePythonAttrs (oldAttrs: { 26 26 src = fetchFromGitHub { 27 27 owner = "paperless-ngx"; 28 28 repo = "django-q"; ··· 42 42 }; 43 43 }); 44 44 45 - eth-keys = super.eth-keys.overridePythonAttrs (_: { 46 - doCheck = false; 45 + # downgrade redis due to https://github.com/paperless-ngx/paperless-ngx/pull/1802 46 + # and https://github.com/django/channels_redis/issues/332 47 + channels-redis = super.channels-redis.overridePythonAttrs (oldAttrs: rec { 48 + version = "3.4.1"; 49 + src = fetchFromGitHub { 50 + owner = "django"; 51 + repo = "channels_redis"; 52 + rev = version; 53 + hash = "sha256-ZQSsE3pkM+nfDhWutNuupcyC5MDikUu6zU4u7Im6bRQ="; 54 + }; 55 + }); 56 + 57 + channels = super.channels.overridePythonAttrs (oldAttrs: rec { 58 + version = "3.0.5"; 59 + pname = "channels"; 60 + src = fetchFromGitHub { 61 + owner = "django"; 62 + repo = pname; 63 + rev = version; 64 + sha256 = "sha256-bKrPLbD9zG7DwIYBst1cb+zkDsM8B02wh3D80iortpw="; 65 + }; 66 + propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ self.daphne ]; 67 + }); 68 + 69 + daphne = super.daphne.overridePythonAttrs (oldAttrs: rec { 70 + version = "3.0.2"; 71 + pname = "daphne"; 72 + src = fetchFromGitHub { 73 + owner = "django"; 74 + repo = pname; 75 + rev = version; 76 + hash = "sha256-KWkMV4L7bA2Eo/u4GGif6lmDNrZAzvYyDiyzyWt9LeI="; 77 + }; 47 78 }); 48 79 }; 49 80 }; ··· 229 198 pytestCheckHook 230 199 ]; 231 200 232 - pytestFlagsArray = [ "src" ]; 201 + pytestFlagsArray = [ 202 + "src" 203 + ]; 233 204 234 205 # The tests require: 235 206 # - PATH with runtime binaries ··· 247 214 --replace "--cov --cov-report=html" "" 248 215 ''; 249 216 217 + 250 218 passthru = { 251 219 inherit python path; 252 220 tests = { inherit (nixosTests) paperless; }; 253 221 }; 254 222 255 223 meta = with lib; { 256 - description = "A supercharged version of paperless: scan, index, and archive all of your physical documents"; 257 - homepage = "https://paperless-ngx.readthedocs.io/en/latest/"; 224 + description = "Tool to scan, index, and archive all of your physical documents"; 225 + homepage = "https://paperless-ngx.readthedocs.io/"; 258 226 license = licenses.gpl3Only; 259 227 maintainers = with maintainers; [ lukegb gador erikarvstedt ]; 260 228 };
+30 -16
pkgs/development/python-modules/channels-redis/default.nix
··· 3 3 , asgiref 4 4 , buildPythonPackage 5 5 , channels 6 - , fetchPypi 6 + , cryptography 7 + , fetchFromGitHub 7 8 , hiredis 8 9 , msgpack 9 10 , pythonOlder ··· 13 12 14 13 buildPythonPackage rec { 15 14 pname = "channels-redis"; 16 - version = "3.4.1"; 15 + version = "4.0.0"; 16 + format = "setuptools"; 17 17 18 - disabled = pythonOlder "3.6"; 18 + disabled = pythonOlder "3.7"; 19 19 20 - src = fetchPypi { 21 - inherit version; 22 - pname = "channels_redis"; 23 - sha256 = "sha256-eOSi8rKnRP5ah4SOw2te5J9SLGgIzv5sWDZj0NUx+qg="; 20 + src = fetchFromGitHub { 21 + owner = "django"; 22 + repo = "channels_redis"; 23 + rev = version; 24 + hash = "sha256-YiLNrMRroa8T4uPNwa5ussFoFYjyg31waGpBGhAETmY="; 24 25 }; 25 26 26 - buildInputs = [ redis hiredis ]; 27 + buildInputs = [ 28 + hiredis 29 + redis 30 + ]; 27 31 28 - propagatedBuildInputs = [ channels msgpack aioredis asgiref ]; 32 + propagatedBuildInputs = [ 33 + aioredis 34 + asgiref 35 + channels 36 + msgpack 37 + ]; 38 + 39 + passthru.optional-dependencies = { 40 + cryptography = [ 41 + cryptography 42 + ]; 43 + }; 29 44 30 45 # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379) 31 46 # (even with a local Redis instance running) 32 47 doCheck = false; 33 48 34 - postPatch = '' 35 - sed -i "s/msgpack~=0.6.0/msgpack/" setup.py 36 - sed -i "s/aioredis~=1.0/aioredis/" setup.py 37 - ''; 38 - 39 - pythonImportsCheck = [ "channels_redis" ]; 49 + pythonImportsCheck = [ 50 + "channels_redis" 51 + ]; 40 52 41 53 meta = with lib; { 42 - homepage = "https://github.com/django/channels_redis/"; 43 54 description = "Redis-backed ASGI channel layer implementation"; 55 + homepage = "https://github.com/django/channels_redis/"; 44 56 license = licenses.bsd3; 45 57 maintainers = with maintainers; [ mmai ]; 46 58 };
+20 -9
pkgs/development/python-modules/channels/default.nix
··· 1 1 { lib 2 - , buildPythonPackage 3 - , fetchFromGitHub 4 2 , asgiref 5 - , django 3 + , buildPythonPackage 6 4 , daphne 5 + , django 6 + , fetchFromGitHub 7 7 , pytest-asyncio 8 8 , pytest-django 9 9 , pytestCheckHook 10 + , pythonOlder 10 11 }: 11 12 12 13 buildPythonPackage rec { 13 14 pname = "channels"; 14 - version = "3.0.5"; 15 + version = "4.0.0"; 16 + format = "setuptools"; 17 + 18 + disabled = pythonOlder "3.7"; 15 19 16 20 src = fetchFromGitHub { 17 21 owner = "django"; 18 22 repo = pname; 19 23 rev = version; 20 - sha256 = "sha256-bKrPLbD9zG7DwIYBst1cb+zkDsM8B02wh3D80iortpw="; 24 + hash = "sha256-n88MxwYQ4O2kBy/W0Zvi3FtIlhZQQRCssB/lYrFNvps="; 21 25 }; 22 26 23 27 propagatedBuildInputs = [ 24 28 asgiref 25 29 django 26 - daphne 27 30 ]; 31 + 32 + passthru.optional-dependencies = { 33 + daphne = [ 34 + daphne 35 + ]; 36 + }; 28 37 29 38 checkInputs = [ 30 39 pytest-asyncio 31 40 pytest-django 32 41 pytestCheckHook 33 - ]; 42 + ] ++ passthru.optional-dependencies.daphne; 34 43 35 44 pytestFlagsArray = [ 36 45 "--asyncio-mode=legacy" 37 46 ]; 38 47 39 - pythonImportsCheck = [ "channels" ]; 48 + pythonImportsCheck = [ 49 + "channels" 50 + ]; 40 51 41 52 meta = with lib; { 42 53 description = "Brings event-driven capabilities to Django with a channel system"; 43 - license = licenses.bsd3; 44 54 homepage = "https://github.com/django/channels"; 55 + license = licenses.bsd3; 45 56 maintainers = with maintainers; [ fab ]; 46 57 }; 47 58 }
+40 -15
pkgs/development/python-modules/daphne/default.nix
··· 1 - { lib, stdenv, buildPythonPackage, isPy3k, fetchFromGitHub 2 - , asgiref, autobahn, twisted, pytest-runner 3 - , hypothesis, pytest, pytest-asyncio, service-identity, pyopenssl 1 + { lib 2 + , stdenv 3 + , asgiref 4 + , autobahn 5 + , buildPythonPackage 6 + , django 7 + , fetchFromGitHub 8 + , hypothesis 9 + , pytest-asyncio 10 + , pytestCheckHook 11 + , pythonOlder 12 + , twisted 4 13 }: 14 + 5 15 buildPythonPackage rec { 6 16 pname = "daphne"; 7 - version = "3.0.2"; 17 + version = "4.0.0"; 18 + format = "setuptools"; 8 19 9 - disabled = !isPy3k; 20 + disabled = pythonOlder "3.7"; 10 21 11 22 src = fetchFromGitHub { 12 23 owner = "django"; 13 24 repo = pname; 14 25 rev = version; 15 - sha256 = "sha256-KWkMV4L7bA2Eo/u4GGif6lmDNrZAzvYyDiyzyWt9LeI="; 26 + hash = "sha256-vPMrmC2B0Pcvk8Y1FsJ4PXnzIMtPod7lL2u0IYNVUxc="; 16 27 }; 17 28 18 - nativeBuildInputs = [ pytest-runner ]; 29 + propagatedBuildInputs = [ 30 + asgiref 31 + autobahn 32 + twisted 33 + ] ++ twisted.optional-dependencies.tls; 19 34 20 - propagatedBuildInputs = [ asgiref autobahn twisted service-identity pyopenssl ]; 35 + checkInputs = [ 36 + django 37 + hypothesis 38 + pytest-asyncio 39 + pytestCheckHook 40 + ]; 21 41 22 - checkInputs = [ hypothesis pytest pytest-asyncio ]; 23 - 24 - doCheck = !stdenv.isDarwin; # most tests fail on darwin 25 - 26 - checkPhase = '' 27 - py.test 42 + postPatch = '' 43 + substituteInPlace setup.py \ 44 + --replace "pytest-runner" "" 28 45 ''; 46 + 47 + # Most tests fail on darwin 48 + doCheck = !stdenv.isDarwin; 49 + 50 + pythonImportsCheck = [ 51 + "daphne" 52 + ]; 29 53 30 54 meta = with lib; { 31 55 description = "Django ASGI (HTTP/WebSocket) server"; 32 - license = licenses.bsd3; 33 56 homepage = "https://github.com/django/daphne"; 57 + license = licenses.bsd3; 58 + maintainers = with maintainers; [ ]; 34 59 }; 35 60 }
+11 -7
pkgs/servers/baserow/default.nix
··· 8 8 9 9 baserow_premium = with python3.pkgs; ( buildPythonPackage rec { 10 10 pname = "baserow_premium"; 11 - version = "1.10.2"; 11 + version = "1.12.1"; 12 12 foramt = "setuptools"; 13 13 14 14 src = fetchFromGitLab { 15 15 owner = "bramw"; 16 16 repo = pname; 17 17 rev = "refs/tags/${version}"; 18 - hash = "sha256-4BrhTwAxHboXz8sMZL0V68skgNw2D2/YJuiWVNe0p4w="; 18 + hash = "sha256-zT2afl3QNE2dO3JXjsZXqSmm1lv3EorG3mYZLQQMQ2Q="; 19 19 }; 20 20 21 21 sourceRoot = "source/premium/backend"; ··· 27 27 28 28 with python3.pkgs; buildPythonPackage rec { 29 29 pname = "baserow"; 30 - version = "1.10.2"; 30 + version = "1.12.1"; 31 31 format = "setuptools"; 32 32 33 33 src = fetchFromGitLab { 34 34 owner = "bramw"; 35 35 repo = pname; 36 36 rev = "refs/tags/${version}"; 37 - hash = "sha256-4BrhTwAxHboXz8sMZL0V68skgNw2D2/YJuiWVNe0p4w="; 37 + hash = "sha256-zT2afl3QNE2dO3JXjsZXqSmm1lv3EorG3mYZLQQMQ2Q="; 38 38 }; 39 39 40 40 sourceRoot = "source/backend"; ··· 46 46 sed 's/\[standard\]//' -i requirements/base.in requirements/base.txt 47 47 ''; 48 48 49 - nativeBuildInputs = [ makeWrapper ]; 49 + nativeBuildInputs = [ 50 + makeWrapper 51 + ]; 50 52 51 53 propagatedBuildInputs = [ 54 + autobahn 52 55 advocate 53 56 antlr4-python3-runtime 54 57 boto3 ··· 59 56 celery-redbeat 60 57 channels 61 58 channels-redis 59 + daphne 62 60 dj-database-url 63 61 django-celery-beat 64 62 django-celery-email ··· 115 111 cp -r src/baserow/core/management/backup $out/lib/${python.libPrefix}/site-packages/baserow/core/management/ 116 112 ''; 117 113 118 - # Disable linting checks 119 114 disabledTests = [ 115 + # Disable linting checks 120 116 "flake8_plugins" 121 117 ]; 122 118 ··· 134 130 DJANGO_SETTINGS_MODULE = "baserow.config.settings.test"; 135 131 136 132 meta = with lib; { 137 - homepage = "https://baserow.io"; 138 133 description = "No-code database and Airtable alternative"; 134 + homepage = "https://baserow.io"; 139 135 license = licenses.mit; 140 136 maintainers = with maintainers; [ onny ]; 141 137 };