ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
}
|