2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
django,
|
|
|
|
django-polymorphic,
|
|
|
|
djangorestframework,
|
|
|
|
pytest-django,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
six,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-rest-polymorphic";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "0.1.10";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "apirobot";
|
|
|
|
repo = "django-rest-polymorphic";
|
2024-06-05 15:53:02 +00:00
|
|
|
# https://github.com/denisorehovsky/django-rest-polymorphic/issues/42
|
2022-11-04 12:27:35 +00:00
|
|
|
rev = "9d920eb91ef13144094426f9ebc0ca80247c0fe3";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-k7Cl2QYkaGOZaTo8v5Wg9Wqh8x0WC5i9Sggqj8eeECY=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
django-polymorphic
|
|
|
|
djangorestframework
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
pytest-django
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "rest_polymorphic" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Polymorphic serializers for Django REST Framework";
|
|
|
|
homepage = "https://github.com/apirobot/django-rest-polymorphic";
|
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|