From 5dc63e69dbc4acacdbf08fee71be994b15829f50 Mon Sep 17 00:00:00 2001 From: Wisut Hantanong Date: Mon, 14 Aug 2017 03:58:35 +0700 Subject: [PATCH] pythonPackages.django_extensions : init at 1.8.1 (#27378) * add django-extensions 1.8.1 * enable testing * use propagatedBuildInputs --- .../django-extensions/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/django-extensions/default.nix diff --git a/pkgs/development/python-modules/django-extensions/default.nix b/pkgs/development/python-modules/django-extensions/default.nix new file mode 100644 index 000000000000..13f35d110c7a --- /dev/null +++ b/pkgs/development/python-modules/django-extensions/default.nix @@ -0,0 +1,27 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub +, vobject, mock, tox, pytestcov, pytest-django, pytest, shortuuid +, django, six +}: + +buildPythonPackage rec { + pname = "django-extensions"; + version = "1.8.1"; + name = "${pname}-${version}"; + + src = fetchFromGitHub { + owner = "${pname}"; + repo = "${pname}"; + rev = "${version}"; + sha256 = "08rd9zswvjb9dixzyd3p3l3hw3wwhqkgyjvid65niybzjl1xdb5h"; + }; + + buildInputs = [ vobject mock tox pytestcov pytest-django pytest shortuuid ]; + + propagatedBuildInputs = [ django six ]; + + meta = with stdenv.lib; { + description = "A collection of custom extensions for the Django Framework"; + homepage = https://github.com/django-extensions/django-extensions; + licenses = [ licenses.mit ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9fe6d253b016..c053ca7450c0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8968,6 +8968,8 @@ in { }; }; + django_extensions = callPackage ../development/python-modules/django-extensions { }; + django_guardian = callPackage ../development/python-modules/django_guardian.nix { }; django_polymorphic = callPackage ../development/python-modules/django-polymorphic { };