summaryrefslogtreecommitdiffstats
path: root/pkgs/development
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-05-25 20:17:28 +0200
committerGitHub <noreply@github.com>2022-05-25 20:17:28 +0200
commit349172e7c846aece66fd12a2033a7681f8a5b887 (patch)
treea4fd3ef4b620c2b0f3c3010b4db6718f2692762b /pkgs/development
parent27d54ad2e9c43f91c45ea543368a6a4e5af56ded (diff)
parent0b17f1cf02ec5ab75b09339f0cafa91ec3fc65c8 (diff)
Merge pull request #174567 from SuperSandro2000/django-rest-polymorphic
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.nix45
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 ];
+ };
+}