mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
Merge pull request #315187 from sephii/djangorestframework-3_15_1
python3Packages.djangorestframework: 3.14.0 -> 3.15.1
This commit is contained in:
commit
3efcc2bcf2
@ -16,6 +16,14 @@ let
|
||||
};
|
||||
propagatedBuildInputs = [ super.decorator super.six ];
|
||||
});
|
||||
|
||||
djangorestframework = super.djangorestframework.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "3.14.0";
|
||||
src = oldAttrs.src.override {
|
||||
rev = version;
|
||||
hash = "sha256-Fnj0n3NS3SetOlwSmGkLE979vNJnYE6i6xwVBslpNz4=";
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -50,6 +50,14 @@ let
|
||||
hash = "sha256-ng98DTw49zyFjrPnEwfnPfONyjKKZYuLl0qduxSppYk=";
|
||||
};
|
||||
});
|
||||
|
||||
djangorestframework = prev.djangorestframework.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "3.14.0";
|
||||
src = oldAttrs.src.override {
|
||||
rev = version;
|
||||
hash = "sha256-Fnj0n3NS3SetOlwSmGkLE979vNJnYE6i6xwVBslpNz4=";
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -25,6 +25,14 @@ let
|
||||
# fails with some assertions
|
||||
doCheck = false;
|
||||
});
|
||||
|
||||
djangorestframework = prev.djangorestframework.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "3.14.0";
|
||||
src = oldAttrs.src.override {
|
||||
rev = version;
|
||||
hash = "sha256-Fnj0n3NS3SetOlwSmGkLE979vNJnYE6i6xwVBslpNz4=";
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
|
||||
# dependencies
|
||||
django,
|
||||
@ -39,6 +40,11 @@ buildPythonPackage rec {
|
||||
pytest-django
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "dynamic_preferences" ];
|
||||
|
||||
# Remove once https://github.com/agateblue/django-dynamic-preferences/issues/309 is fixed
|
||||
doCheck = pythonOlder "3.12";
|
||||
|
||||
env.DJANGO_SETTINGS = "tests.settings";
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -2,20 +2,29 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
coreapi,
|
||||
django,
|
||||
django-guardian,
|
||||
pythonOlder,
|
||||
pytest-django,
|
||||
pytest7CheckHook,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
django,
|
||||
pytz,
|
||||
|
||||
# tests
|
||||
coreapi,
|
||||
coreschema,
|
||||
django-guardian,
|
||||
inflection,
|
||||
psycopg2,
|
||||
pytestCheckHook,
|
||||
pytest-django,
|
||||
pyyaml,
|
||||
uritemplate,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "djangorestframework";
|
||||
version = "3.14.0";
|
||||
version = "3.15.1";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
@ -23,28 +32,35 @@ buildPythonPackage rec {
|
||||
owner = "encode";
|
||||
repo = "django-rest-framework";
|
||||
rev = version;
|
||||
hash = "sha256-Fnj0n3NS3SetOlwSmGkLE979vNJnYE6i6xwVBslpNz4=";
|
||||
hash = "sha256-G914NvxRmKGkxrozoWNUIoI74YkYRbeNcQwIG4iSeXU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
django
|
||||
pytz
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-django
|
||||
pytest7CheckHook
|
||||
pytestCheckHook
|
||||
|
||||
# optional tests
|
||||
coreapi
|
||||
coreschema
|
||||
django-guardian
|
||||
inflection
|
||||
psycopg2
|
||||
pyyaml
|
||||
uritemplate
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "rest_framework" ];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/encode/django-rest-framework/releases/tag/3.15.1";
|
||||
description = "Web APIs for Django, made easy";
|
||||
homepage = "https://www.django-rest-framework.org/";
|
||||
maintainers = with maintainers; [ desiderius ];
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "graphene-django";
|
||||
version = "3.2.1";
|
||||
version = "3.2.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
@ -31,7 +31,7 @@ buildPythonPackage rec {
|
||||
owner = "graphql-python";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-wzU9U4mYvBf43qBQi20ewKtmw1eFskQk+nnsdaM7HQM=";
|
||||
hash = "sha256-12ue7Pq7TFMSBAfaj8Si6KrpuKYp5T2EEesJpc8wRho=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
Loading…
Reference in New Issue
Block a user