python310Packages.django-rest-polymorphic: init at 0.1.9

This commit is contained in:
Sandro Jäckel 2022-05-25 19:45:07 +02:00
parent 8dc951af1d
commit 0b17f1cf02
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, django-polymorphic
, djangorestframework
, pytest-django
, pytest-mock
, pytestCheckHook
, six
}:
buildPythonPackage rec {
pname = "django-rest-polymorphic";
version = "0.1.9";
src = fetchFromGitHub {
owner = "apirobot";
repo = "django-rest-polymorphic";
rev = "v${version}";
sha256 = "sha256-p3ew2NONSyiGzDzxGTy/cx3fcQhhvnzqopJzgqhXadY=";
};
propagatedBuildInputs = [
django
django-polymorphic
djangorestframework
six
];
checkInputs = [
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;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -2384,6 +2384,8 @@ in {
django-rest-auth = callPackage ../development/python-modules/django-rest-auth { };
django-rest-polymorphic = callPackage ../development/python-modules/django-rest-polymorphic { };
django-rq = callPackage ../development/python-modules/django-rq { };
djangorestframework = callPackage ../development/python-modules/djangorestframework { };