pythonPackages.django_environ: refactor move to python-modules
This commit is contained in:
parent
90089d8786
commit
3ec02fd004
27
pkgs/development/python-modules/django_environ/default.nix
Normal file
27
pkgs/development/python-modules/django_environ/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue