nixpkgs/pkgs/development/python-modules/django-extensions/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

27 lines
717 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub
, vobject, mock, tox, pytestcov, pytest-django, pytest, shortuuid
, django, six
}:
buildPythonPackage rec {
pname = "django-extensions";
version = "1.8.1";
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;
license = licenses.mit;
};
}