mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
djangorestframework: 3.15.1 -> 3.15.2
Fixes a potential XSS vulnerability. Moved most test dependencies into optional-dependencies, added pygments which was needed in a test.
This commit is contained in:
parent
1094ca551b
commit
d07eb6be1d
@ -11,46 +11,56 @@
|
||||
django,
|
||||
pytz,
|
||||
|
||||
# tests
|
||||
# optional-dependencies
|
||||
coreapi,
|
||||
coreschema,
|
||||
django-guardian,
|
||||
inflection,
|
||||
psycopg2,
|
||||
pygments,
|
||||
pyyaml,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
pytest-django,
|
||||
pyyaml,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "djangorestframework";
|
||||
version = "3.15.1";
|
||||
format = "setuptools";
|
||||
version = "3.15.2";
|
||||
pyproject = true;
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "encode";
|
||||
repo = "django-rest-framework";
|
||||
rev = version;
|
||||
hash = "sha256-G914NvxRmKGkxrozoWNUIoI74YkYRbeNcQwIG4iSeXU=";
|
||||
hash = "sha256-ne0sk4m11Ha77tNmCsdhj7QVmCkYj5GjLn/dLF4qxU8=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ django ] ++ (lib.optional (lib.versionOlder django.version "5.0.0") pytz);
|
||||
dependencies = [
|
||||
django
|
||||
pygments
|
||||
] ++ (lib.optional (lib.versionOlder django.version "5.0.0") pytz);
|
||||
|
||||
optional-dependencies = {
|
||||
complete = [
|
||||
coreapi
|
||||
coreschema
|
||||
django-guardian
|
||||
inflection
|
||||
psycopg2
|
||||
pygments
|
||||
pyyaml
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-django
|
||||
pytestCheckHook
|
||||
|
||||
# optional tests
|
||||
coreapi
|
||||
coreschema
|
||||
django-guardian
|
||||
inflection
|
||||
psycopg2
|
||||
pyyaml
|
||||
];
|
||||
] ++ optional-dependencies.complete;
|
||||
|
||||
disabledTests = [
|
||||
# https://github.com/encode/django-rest-framework/issues/9422
|
||||
|
Loading…
Reference in New Issue
Block a user