diff --git a/pkgs/development/python-modules/django_evolution/default.nix b/pkgs/development/python-modules/django_evolution/default.nix new file mode 100644 index 000000000000..92ed3d572a1e --- /dev/null +++ b/pkgs/development/python-modules/django_evolution/default.nix @@ -0,0 +1,26 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +, django +}: + +buildPythonPackage rec { + pname = "django_evolution"; + version = "0.7.5"; + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "1qbcx54hq8iy3n2n6cki3bka1m9rp39np4hqddrm9knc954fb7nv"; + }; + + propagatedBuildInputs = [ django ]; + + meta = with stdenv.lib; { + description = "A database schema evolution tool for the Django web framework"; + homepage = http://code.google.com/p/django-evolution/; + license = licenses.bsd0; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 67344a571a52..3b3841afa882 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2249,22 +2249,7 @@ in { django_environ = callPackage ../development/python-modules/django_environ { }; - django_evolution = buildPythonPackage rec { - name = "django_evolution-0.7.5"; - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/django_evolution/${name}.tar.gz"; - sha256 = "1qbcx54hq8iy3n2n6cki3bka1m9rp39np4hqddrm9knc954fb7nv"; - }; - - propagatedBuildInputs = with self; [ django ]; - - meta = { - description = "A database schema evolution tool for the Django web framework"; - homepage = http://code.google.com/p/django-evolution/; - }; - }; + django_evolution = callPackage ../development/python-modules/django_evolution { }; django_extensions = callPackage ../development/python-modules/django-extensions { };