Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/django-extensions/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you maintain this package?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I won't. I don't think I have enough knowledge on python packaging.

I use django for my own personal project and found this project useful. Try to install it and think it would save time for other if the package is ready-to-use.

Copy link
Member

@Mic92 Mic92 Jul 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The python packaging part can be handled by core maintainers. Often is more important to have someone, who knows how the library is supposed to work and have ways to use/test newer versions of it.

}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9474,6 +9474,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 { };
Expand Down