diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-05-25 19:45:07 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-05-25 19:45:41 +0200 |
commit | 0b17f1cf02ec5ab75b09339f0cafa91ec3fc65c8 (patch) | |
tree | 56ea297ea3da08965089cd966407f1982fdfef82 /pkgs/development | |
parent | 8dc951af1d1a3de2031ac28fa0fd67852a44a215 (diff) |
python310Packages.django-rest-polymorphic: init at 0.1.9
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/django-rest-polymorphic/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/django-rest-polymorphic/default.nix b/pkgs/development/python-modules/django-rest-polymorphic/default.nix new file mode 100644 index 000000000000..c53fd183db91 --- /dev/null +++ b/pkgs/development/python-modules/django-rest-polymorphic/default.nix @@ -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 ]; + }; +} |