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";