cereal/derivation.nix
Campbell Alden cb70df80e1 Add a script for seeding data into the database
Expects a Data argument which is a directory containing the text for
A Study in Scarlet
2026-08-15 00:14:12 +09:00

13 lines
361 B
Nix

{ lib, python313Packages }:
with python313Packages;
buildPythonApplication {
pname = "cereal";
version = "0.0.1";
propagatedBuildInputs = [ flask requests waitress sqlalchemy argon2-cffi pyjwt cryptography jinja2];
src = ./.;
pyproject = true;
build-system = [setuptools];
postInstall = ''
install -Dm755 scripts/seed.py $out/bin/seed
'';
}