Files
nixpkgs/pkgs/development/python-modules/drf-pydantic/default.nix
T
2025-12-17 04:42:54 +00:00

46 lines
864 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
pydantic,
hatchling,
djangorestframework,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "drf-pydantic";
version = "2.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "georgebv";
repo = "drf-pydantic";
tag = "v${version}";
hash = "sha256-/dMhKlAMAh63JlhanfSfe15ECMZvtnd1huD8L3Xo2AQ=";
};
build-system = [
hatchling
];
dependencies = [
django
pydantic
djangorestframework
];
nativeChecksInputs = [
pytestCheckHook
];
meta = {
changelog = "https://github.com/georgebv/drf-pydantic/releases/tag/${src.tag}";
description = "Use pydantic with the Django REST framework";
homepage = "https://github.com/georgebv/drf-pydantic";
maintainers = [ lib.maintainers.kiara ];
license = lib.licenses.mit;
};
}