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:
co-authored by
OTABI Tomoya
Sandro
parent
62166d9c79
commit
75cedf7fb0
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user