From 7007e9d5f6133c7a86131283bef7e371d73e0e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 14 Jan 2024 23:31:23 +0200 Subject: [PATCH] indent --- pkgs/e11sync.nix | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/pkgs/e11sync.nix b/pkgs/e11sync.nix index 8181623..3daac2d 100644 --- a/pkgs/e11sync.nix +++ b/pkgs/e11sync.nix @@ -30,8 +30,8 @@ stdenv.mkDerivation { --chdir $out/app \ --set-default E11SYNC_HTTP_PORT ${toString gunicornPort} \ ${lib.optionalString (database-path != null) '' - --set E11SYNC_DATABASE_PATH "${database-path}" \ - ''} \ + --set E11SYNC_DATABASE_PATH "${database-path}" \ + ''} \ --set E11SYNC_DEBUG "" \ --set E11SYNC_COMPRESS_OFFLINE 1 \ --set GEOIP_PATH "${geoip-archive}" \ @@ -41,20 +41,18 @@ stdenv.mkDerivation { makeWrapper $out/app/manage.py $out/bin/e11sync \ --set GEOIP_PATH "${geoip-archive}" ''; - passthru.tests = { - unit = - runCommand "e11sync-test" { - buildInputs = [ - python3Packages.django_5 - python3Packages.django-compressor - python3Packages.geoip2 - dart-sass - ]; - } '' - mkdir -p $out - cd ${self}/app - export GEOIP_PATH="${geoip-archive}" - ${python3}/bin/python3 ./manage.py test - ''; - }; + passthru.tests.unit = + runCommand "e11sync-test" { + buildInputs = [ + python3Packages.django_5 + python3Packages.django-compressor + python3Packages.geoip2 + dart-sass + ]; + } '' + mkdir -p $out + cd ${self}/app + export GEOIP_PATH="${geoip-archive}" + ${python3}/bin/python3 ./manage.py test + ''; }