python311Packages.django_5 0 -> 1 attrpath: python311Packages.django_5 Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/d07k4b1znp08zm2npk9gl1bq23k2g85x-packages.json.drv building '/nix/store/d07k4b1znp08zm2npk9gl1bq23k2g85x-packages.json.drv'... Going to be running update for following packages: - python3.11-django-5.0.3 Press Enter key to continue... Running update for: - python3.11-django-5.0.3: UPDATING ... - python3.11-django-5.0.3: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/django/5.nix b/pkgs/development/python-modules/django/5.nix index d359df1c9a45..0804ca542840 100644 --- a/pkgs/development/python-modules/django/5.nix +++ b/pkgs/development/python-modules/django/5.nix @@ -43,7 +43,7 @@ buildPythonPackage rec { pname = "django"; - version = "5.0.3"; + version = "5.0.4"; pyproject = true; disabled = pythonOlder "3.10"; @@ -51,7 +51,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "Django"; inherit version; - hash = "sha256-X7N1gNz0omL5JYwfQ3OBmqzKkGQx9QXkaI4386mRld8="; + hash = "sha256-S9AajIMLt3qKOw59iyW4h+U2rReoG6Lc5UdhNcczEr0="; }; patches = [ No auto update branch exists Old version 5.0.3" not present in master derivation file with contents: { lib , stdenv , buildPythonPackage , fetchPypi , pythonAtLeast , pythonOlder , substituteAll # build-system , setuptools # patched in , geos , gdal , withGdal ? false # dependencies , asgiref , sqlparse # optional-dependencies , argon2-cffi , bcrypt # tests , aiosmtpd , docutils , geoip2 , jinja2 , numpy , pillow , pylibmc , pymemcache , python , pywatchman , pyyaml , pytz , redis , selenium , tblib , tzdata }: buildPythonPackage rec { pname = "django"; version = "5.0.4"; pyproject = true; disabled = pythonOlder "3.10"; src = fetchPypi { pname = "Django"; inherit version; hash = "sha256-S9AajIMLt3qKOw59iyW4h+U2rReoG6Lc5UdhNcczEr0="; }; patches = [ (substituteAll { src = ./django_5_set_zoneinfo_dir.patch; zoneinfo = tzdata + "/share/zoneinfo"; }) # prevent tests from messing with our pythonpath ./django_5_tests_pythonpath.patch # disable test that excpects timezone issues ./django_5_disable_failing_tests.patch ] ++ lib.optionals withGdal [ (substituteAll { src = ./django_5_set_geos_gdal_lib.patch; geos = geos; gdal = gdal; extension = stdenv.hostPlatform.extensions.sharedLibrary; }) ]; postPatch = '' substituteInPlace tests/utils_tests/test_autoreload.py \ --replace "/usr/bin/python" "${python.interpreter}" '' + lib.optionalString (pythonAtLeast "3.12" && stdenv.hostPlatform.system == "aarch64-linux") '' # Test regression after xz was reverted from 5.6.0 to 5.4.6 # https://hydra.nixos.org/build/254532197 substituteInPlace tests/view_tests/tests/test_debug.py \ --replace-fail "test_files" "dont_test_files" ''; build-system = [ setuptools ]; dependencies = [ asgiref sqlparse ]; optional-dependencies = { argon2 = [ argon2-cffi ]; bcrypt = [ bcrypt ]; }; nativeCheckInputs = [ # tests/requirements/py3.txt aiosmtpd docutils geoip2 jinja2 numpy pillow pylibmc pymemcache pywatchman pyyaml pytz redis selenium tblib tzdata ] ++ lib.flatten (lib.attrValues optional-dependencies); doCheck = !stdenv.isDarwin; preCheck = '' # make sure the installed library gets imported rm -rf django # provide timezone data, works only on linux export TZDIR=${tzdata}/${python.sitePackages}/tzdata/zoneinfo ''; checkPhase = '' runHook preCheck pushd tests ${python.interpreter} runtests.py --settings=test_sqlite popd runHook postCheck ''; __darwinAllowLocalNetworking = true; meta = with lib; { changelog = "https://docs.djangoproject.com/en/${lib.versions.majorMinor version}/releases/${version}/"; description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design."; homepage = "https://www.djangoproject.com"; license = licenses.bsd3; maintainers = with maintainers; [ hexa ]; }; }