From 6fd4c3956e6b799e371e94eb73adb8f90dac1af2 Mon Sep 17 00:00:00 2001 From: Langston Barrett Date: Tue, 27 Jun 2017 21:12:29 +0000 Subject: [PATCH] django-polymorphic: init at 1.2 --- .../django-polymorphic/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/python-modules/django-polymorphic/default.nix diff --git a/pkgs/development/python-modules/django-polymorphic/default.nix b/pkgs/development/python-modules/django-polymorphic/default.nix new file mode 100644 index 000000000000..2d06b41d2db3 --- /dev/null +++ b/pkgs/development/python-modules/django-polymorphic/default.nix @@ -0,0 +1,21 @@ +{ stdenv, buildPythonPackage, fetchPypi, django }: + +buildPythonPackage rec { + pname = "django-polymorphic"; + version = "1.2"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "1bz86711sx2b66rl2xz141xppsfmlxilkgjgq0jsavpw37vg7r3r"; + }; + + checkInputs = [ django ]; + propagatedBuildInputs = [ django ]; + + meta = { + homepage = "https://github.com/django-polymorphic/django-polymorphic"; + description = "Improved Django model inheritance with automatic downcasting"; + license = stdenv.lib.licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e9596dd464be..5b72a0974311 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10005,6 +10005,8 @@ in { django_guardian = callPackage ../development/python-modules/django_guardian.nix { }; + django_polymorphic = callPackage ../development/python-modules/django-polymorphic { }; + django_tagging = buildPythonPackage rec { name = "django-tagging-0.4.5";