diff --git a/pkgs/development/python-modules/diskcache/default.nix b/pkgs/development/python-modules/diskcache/default.nix index cf3f7b514b1f..6a8d1e59cea7 100644 --- a/pkgs/development/python-modules/diskcache/default.nix +++ b/pkgs/development/python-modules/diskcache/default.nix @@ -43,6 +43,8 @@ buildPythonPackage rec { "test_incr_version" "test_get_or_set" "test_get_many" + # see https://github.com/grantjenks/python-diskcache/issues/260 + "test_cache_write_unpicklable_object" ]; pythonImportsCheck = [ diff --git a/pkgs/development/python-modules/django-js-asset/default.nix b/pkgs/development/python-modules/django-js-asset/default.nix index e7001d15a9a4..f921077934fd 100644 --- a/pkgs/development/python-modules/django-js-asset/default.nix +++ b/pkgs/development/python-modules/django-js-asset/default.nix @@ -7,14 +7,14 @@ buildPythonPackage rec { pname = "django-js-asset"; - version = "unstable-2021-06-07"; + version = "2.0"; format = "setuptools"; src = fetchFromGitHub { owner = "matthiask"; repo = pname; - rev = "a186aa0b5721ca95da6cc032a2fb780a152f581b"; - sha256 = "141zxng0wwxalsi905cs8pdppy3ad717y3g4fkdxw4n3pd0fjp8r"; + rev = "refs/tags/${version}"; + hash = "sha256-YDOmbqB0xDBAlOSO1UBYJ8VfRjJ8Z6Hw1i24DNSrnjw="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/django/4.nix b/pkgs/development/python-modules/django/4.nix index 1ab14001351e..29e45201e01a 100644 --- a/pkgs/development/python-modules/django/4.nix +++ b/pkgs/development/python-modules/django/4.nix @@ -6,6 +6,7 @@ , substituteAll # patched in +, fetchpatch , geos , gdal , withGdal ? false @@ -39,23 +40,32 @@ buildPythonPackage rec { pname = "Django"; - version = "4.0.7"; + version = "4.1"; format = "pyproject"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-nG1a02vnmOVi3cqmsXscP/LTxPUppHQytp+5ow+EdGE="; + hash = "sha256-Ay+Kb8fPBczRIU5KLiHfzWojudV1xlc8rMjGeCjb5kI="; }; - patches = lib.optional withGdal + patches = [ + (fetchpatch { + # Fix regression in sqlite backend introduced in 4.1. + # https://github.com/django/django/pull/15925 + url = "https://github.com/django/django/commit/c0beff21239e70cbdcc9597e5be09e505bb8f76c.patch"; + hash = "sha256-QE7QnfYAK74wvK8gDJ15FtQ+BCIWRQKAVvM7v1FzwlE="; + excludes = [ "docs/releases/4.1.1.txt" ]; + }) + ] ++ lib.optionals withGdal [ (substituteAll { src = ./django_4_set_geos_gdal_lib.patch; geos = geos; gdal = gdal; extension = stdenv.hostPlatform.extensions.sharedLibrary; - }); + }) + ]; propagatedBuildInputs = [ asgiref