504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
38 lines
811 B
Nix
38 lines
811 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, django
|
|
, djangorestframework
|
|
, pytestCheckHook
|
|
, pytest-django
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "drf-writable-nested";
|
|
version = "0.7.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "beda-software";
|
|
repo = "drf-writable-nested";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/7MZAw0clzzlBdYchUVKldWT7WqtwdSe+016QAP0hqk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
djangorestframework
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-django
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Writable nested model serializer for Django REST Framework";
|
|
homepage = "https://github.com/beda-software/drf-writable-nested";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|