python312Packages.drf-extra-fields: init at 3.7.0

Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Nico Felbinger
2024-10-07 13:50:22 +02:00
committed by Sandro Jäckel
co-authored by OTABI Tomoya Sandro
parent 62166d9c79
commit 75cedf7fb0
2 changed files with 57 additions and 0 deletions
@@ -0,0 +1,55 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
django,
djangorestframework,
filetype,
pillow,
psycopg2,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage rec {
pname = "drf-extra-fields";
version = "3.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "hipo";
repo = "drf-extra-fields";
rev = "v${version}";
hash = "sha256-Ym4vnZ/t0ZdSxU53BC0ducJl1YiTygRSWql/35PNbOU";
};
build-system = [ setuptools ];
dependencies = [
django
djangorestframework
filetype
];
optional-dependencies = {
Base64ImageField = [ pillow ];
};
nativeCheckInputs = [
(django.override { withGdal = true; })
psycopg2
pytestCheckHook
pytest-django
] ++ optional-dependencies.Base64ImageField;
pythonImportsCheck = [ "drf_extra_fields" ];
meta = {
description = "Extra Fields for Django Rest Framework";
homepage = "https://github.com/Hipo/drf-extra-fields";
changelog = "https://github.com/Hipo/drf-extra-fields/releases/tag/${src.rev}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ felbinger ];
};
}
+2
View File
@@ -3724,6 +3724,8 @@ self: super: with self; {
dremel3dpy = callPackage ../development/python-modules/dremel3dpy { };
drf-extra-fields = callPackage ../development/python-modules/drf-extra-fields { };
drf-jwt = callPackage ../development/python-modules/drf-jwt { };
drf-nested-routers = callPackage ../development/python-modules/drf-nested-routers { };