Something went wrong. Try again.
lol
Something went wrong. Try again.
1.7 kB · 79 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ lib, buildPythonPackage, dramatiq, fetchFromGitLab, flask-migrate, flask, periodiq, poetry-core, postgresql, postgresqlTestHook, psycopg2, pytest-cov-stub, pytest-mock, pytestCheckHook, requests,}:
buildPythonPackage { pname = "flask-dramatiq"; version = "0.6.0"; pyproject = true;
src = fetchFromGitLab { owner = "bersace"; repo = "flask-dramatiq"; rev = "840209e9bf582b4dda468e8bba515f248f3f8534"; hash = "sha256-qjV1zyVzHPXMt+oUeGBdP9XVlbcSz2MF9Zygj543T4w="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace 'poetry>=0.12' 'poetry-core' \ --replace 'poetry.masonry.api' 'poetry.core.masonry.api'
patchShebangs --build ./example.py '';
build-system = [ poetry-core ];
pythonRelaxDeps = [ "dramatiq" ];
dependencies = [ dramatiq ];
nativeCheckInputs = [ flask flask-migrate periodiq postgresql postgresqlTestHook psycopg2 pytest-cov-stub pytest-mock pytestCheckHook requests ] ++ dramatiq.optional-dependencies.rabbitmq;
postgresqlTestSetupPost = '' substituteInPlace config.py \ --replace 'SQLALCHEMY_DATABASE_URI = f"postgresql://{PGUSER}:{PGPASSWORD}@{PGHOST}/{PGDATABASE}"' \ "SQLALCHEMY_DATABASE_URI = \"postgresql://$PGUSER/$PGDATABASE?host=$PGHOST\"" python3 ./example.py db upgrade '';
disabledTests = [ "test_fast" "test_other" ];
pythonImportsCheck = [ "flask_dramatiq" ];
meta = { description = "Adds Dramatiq support to your Flask application"; homepage = "https://gitlab.com/bersace/flask-dramatiq"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ traxys ]; };}