diff options
| author | Mira Ressel | 2025-06-10 20:17:29 +0200 |
|---|---|---|
| committer | Mira Ressel | 2025-06-12 11:08:41 +0200 |
| commit | 010a2bb354b309c48092014904d4944b6d6eb9ca (patch) | |
| tree | 2aae4e055a3efc7e0eaf5b5f43b6e2ce78bcd92c /pkgs/bookwyrm/unwrapped.nix | |
| parent | d58c1897c33e8ce9dc3375fcca72d3c294fdd443 (diff) | |
bookwyrm: split into two packages
Seems nice to separate the compilation from the config injection.
Diffstat (limited to 'pkgs/bookwyrm/unwrapped.nix')
| -rw-r--r-- | pkgs/bookwyrm/unwrapped.nix | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/pkgs/bookwyrm/unwrapped.nix b/pkgs/bookwyrm/unwrapped.nix new file mode 100644 index 0000000..151a9b5 --- /dev/null +++ b/pkgs/bookwyrm/unwrapped.nix @@ -0,0 +1,80 @@ +{ lib +, fetchFromGitHub +, python +}: + +python.pkgs.buildPythonApplication rec { + pname = "bookwyrm-unwrapped"; + version = "0.7.5"; + + format = "other"; + + src = fetchFromGitHub { + owner = "bookwyrm-social"; + repo = "bookwyrm"; + rev = "refs/tags/v${version}"; + hash = "sha256-/oak9dEB2rR2z8b9oXVQ6+F2H7s0F5hVxmAlPdpaA0w="; + }; + + propagatedBuildInputs = with python.pkgs; [ + aiohttp + bleach + celery + colorthief + django + django-celery-beat + bw-file-resubmit + django-compressor + django-imagekit + django-model-utils + django-sass-processor + django-csp + django-oauth-toolkit + django-storages + django-pgtrigger + s3-tar + environs + flower + gunicorn + libsass + markdown + packaging + pillow + psycopg2 + pycryptodome + dateutil + redis + requests + responses + pytz + boto3 + django-storages + django-redis + opentelemetry-api + opentelemetry-exporter-otlp-proto-grpc + # opentelemetry-instrumentation-celery + opentelemetry-instrumentation-django + # opentelemetry-instrumentation-pyscopg2 + opentelemetry-sdk + protobuf + pyotp + qrcode + grpcio + ]; + + postInstall = '' + mkdir $out + cp -r * $out + ''; + + passthru = { + pythonPath = python.pkgs.makePythonPath propagatedBuildInputs; + gunicorn = python.pkgs.gunicorn; + celery = python.pkgs.celery; + }; + + # hacky hacky hack + shellHook = '' + export PYTHONPATH=${passthru.pythonPath} + ''; +} |
