Merge pull request #174567 from SuperSandro2000/django-rest-polymorphic

python310Packages.django-rest-polymorphic: init at 0.1.9
This commit is contained in:
Sandro 2022-05-25 20:17:28 +02:00 committed by GitHub
commit 349172e7c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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-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 { }; django-rq = callPackage ../development/python-modules/django-rq { };
djangorestframework = callPackage ../development/python-modules/djangorestframework { }; djangorestframework = callPackage ../development/python-modules/djangorestframework { };