indent
This commit is contained in:
parent
a950f87178
commit
7007e9d5f6
@ -30,8 +30,8 @@ stdenv.mkDerivation {
|
|||||||
--chdir $out/app \
|
--chdir $out/app \
|
||||||
--set-default E11SYNC_HTTP_PORT ${toString gunicornPort} \
|
--set-default E11SYNC_HTTP_PORT ${toString gunicornPort} \
|
||||||
${lib.optionalString (database-path != null) ''
|
${lib.optionalString (database-path != null) ''
|
||||||
--set E11SYNC_DATABASE_PATH "${database-path}" \
|
--set E11SYNC_DATABASE_PATH "${database-path}" \
|
||||||
''} \
|
''} \
|
||||||
--set E11SYNC_DEBUG "" \
|
--set E11SYNC_DEBUG "" \
|
||||||
--set E11SYNC_COMPRESS_OFFLINE 1 \
|
--set E11SYNC_COMPRESS_OFFLINE 1 \
|
||||||
--set GEOIP_PATH "${geoip-archive}" \
|
--set GEOIP_PATH "${geoip-archive}" \
|
||||||
@ -41,20 +41,18 @@ stdenv.mkDerivation {
|
|||||||
makeWrapper $out/app/manage.py $out/bin/e11sync \
|
makeWrapper $out/app/manage.py $out/bin/e11sync \
|
||||||
--set GEOIP_PATH "${geoip-archive}"
|
--set GEOIP_PATH "${geoip-archive}"
|
||||||
'';
|
'';
|
||||||
passthru.tests = {
|
passthru.tests.unit =
|
||||||
unit =
|
runCommand "e11sync-test" {
|
||||||
runCommand "e11sync-test" {
|
buildInputs = [
|
||||||
buildInputs = [
|
python3Packages.django_5
|
||||||
python3Packages.django_5
|
python3Packages.django-compressor
|
||||||
python3Packages.django-compressor
|
python3Packages.geoip2
|
||||||
python3Packages.geoip2
|
dart-sass
|
||||||
dart-sass
|
];
|
||||||
];
|
} ''
|
||||||
} ''
|
mkdir -p $out
|
||||||
mkdir -p $out
|
cd ${self}/app
|
||||||
cd ${self}/app
|
export GEOIP_PATH="${geoip-archive}"
|
||||||
export GEOIP_PATH="${geoip-archive}"
|
${python3}/bin/python3 ./manage.py test
|
||||||
${python3}/bin/python3 ./manage.py test
|
'';
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user