pythonPackages.django_environ: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 13:36:26 -04:00 committed by Frederik Rietdijk
parent 90089d8786
commit 3ec02fd004
2 changed files with 28 additions and 19 deletions

View file

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
, six
}:
buildPythonPackage rec {
pname = "django-environ";
version = "0.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "0i32vsgk1xmwpi7i6f6v5hg653y9dl0fsz5qmv94skz6hwgm5kvh";
};
# The testsuite fails to modify the base environment
doCheck = false;
propagatedBuildInputs = [ django six ];
meta = with stdenv.lib; {
description = "Utilize environment variables to configure your Django application";
homepage = https://github.com/joke2k/django-environ/;
license = licenses.mit;
};
}

View file

@ -2247,25 +2247,7 @@ in {
django_compat = callPackage ../development/python-modules/django-compat { };
django_environ = buildPythonPackage rec {
name = "django-environ-${version}";
version = "0.4.0";
src = pkgs.fetchurl {
url = "mirror://pypi/d/django-environ/${name}.tar.gz";
sha256 = "0i32vsgk1xmwpi7i6f6v5hg653y9dl0fsz5qmv94skz6hwgm5kvh";
};
# The testsuite fails to modify the base environment
doCheck = false;
propagatedBuildInputs = with self ; [ django six ];
meta = {
description = "Utilize environment variables to configure your Django application";
homepage = https://github.com/joke2k/django-environ/;
license = licenses.mit;
};
};
django_environ = callPackage ../development/python-modules/django_environ { };
django_evolution = buildPythonPackage rec {
name = "django_evolution-0.7.5";