Merge pull request #198986 from SuperSandro2000/python310Packages.djangorestframework
This commit is contained in:
commit
d54708eca2
1 changed files with 2 additions and 13 deletions
|
@ -1,7 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, coreapi
|
, coreapi
|
||||||
, django
|
, django
|
||||||
, django-guardian
|
, django-guardian
|
||||||
|
@ -15,26 +14,16 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "djangorestframework";
|
pname = "djangorestframework";
|
||||||
version = "3.13.1";
|
version = "3.14.0";
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "encode";
|
owner = "encode";
|
||||||
repo = "django-rest-framework";
|
repo = "django-rest-framework";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-XmX6DZBZYzVCe72GERplAWt5jIjV/cYercZGb0pYjoc=";
|
sha256 = "sha256-Fnj0n3NS3SetOlwSmGkLE979vNJnYE6i6xwVBslpNz4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
# See https://github.com/encode/django-rest-framework/issues/8608
|
|
||||||
# and https://github.com/encode/django-rest-framework/pull/8591/
|
|
||||||
(fetchpatch {
|
|
||||||
name = "fix-django-collect-static.patch";
|
|
||||||
url = "https://github.com/encode/django-rest-framework/pull/8591/commits/65943bb58deba6ee1a89fe4504f270ab1806fce6.patch";
|
|
||||||
sha256 = "sha256-wI7EzX9tlyyXAPrJEr+/2uTg7dVY98IKgh7Cc/NZo5k=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
django
|
django
|
||||||
pytz
|
pytz
|
||||||
|
|
Loading…
Reference in a new issue