drf-pydantic: init at 2.7.1 (#411728)
This commit is contained in:
commit
8ee4b31ef3
45
pkgs/development/python-modules/drf-pydantic/default.nix
Normal file
45
pkgs/development/python-modules/drf-pydantic/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
django,
|
||||
pydantic,
|
||||
hatchling,
|
||||
djangorestframework,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "drf-pydantic";
|
||||
version = "2.7.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "georgebv";
|
||||
repo = "drf-pydantic";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-ABtSoxj/+HHq4hj4Yb6bEiyOl00TCO/9tvBzhv6afxM=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
django
|
||||
pydantic
|
||||
djangorestframework
|
||||
];
|
||||
|
||||
nativeChecksInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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 = [ maintainers.kiara ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
@ -4310,6 +4310,8 @@ self: super: with self; {
|
||||
|
||||
drf-orjson-renderer = callPackage ../development/python-modules/drf-orjson-renderer { };
|
||||
|
||||
drf-pydantic = callPackage ../development/python-modules/drf-pydantic { };
|
||||
|
||||
drf-spectacular = callPackage ../development/python-modules/drf-spectacular { };
|
||||
|
||||
drf-spectacular-sidecar = callPackage ../development/python-modules/drf-spectacular-sidecar { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user