Files
nixpkgs/pkgs/development/python-modules/drf-standardized-errors/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
flit-core,
django,
djangorestframework,
drf-spectacular,
inflection,
pytestCheckHook,
pytest-django,
django-filter,
}:
buildPythonPackage rec {
pname = "drf-standardized-errors";
version = "0.15.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ghazi-git";
repo = "drf-standardized-errors";
tag = "v${version}";
hash = "sha256-OM1bTqM3yQSPuerTrq5FKTf5eKpZsF6/QgupMtnnT4Q=";
};
build-system = [ flit-core ];
dependencies = [
django
djangorestframework
];
nativeCheckInputs = [
pytestCheckHook
pytest-django
django-filter
drf-spectacular
];
env.DJANGO_SETTINGS_MODULE = "tests.settings";
pythonImportsCheck = [ "drf_standardized_errors" ];
optional-dependencies.openapi = [
drf-spectacular
inflection
];
meta = with lib; {
description = "Standardize your DRF API error responses";
homepage = "https://github.com/ghazi-git/drf-standardized-errors";
changelog = "https://github.com/ghazi-git/drf-standardized-errors/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ erictapen ];
};
}