11 python = python3.override {
13 packageOverrides = self: super: {
14 sqlalchemy = super.sqlalchemy_1_4;
16 flask-sqlalchemy = super.flask-sqlalchemy.overridePythonAttrs (oldAttrs: rec {
20 pname = "flask_sqlalchemy";
22 hash = "sha256-xXZeWMoUVAG1IQbA9GF4VpJDxdolVWviwjHsxghnxbE=";
29 python.pkgs.buildPythonApplication rec {
34 src = fetchFromGitHub {
37 rev = "refs/tags/v${version}";
38 hash = "sha256-K110H5Y8vQrRx2/O+2ezhpGp4G5sJUlzE+1cSYu7+4I=";
42 python.pkgs.poetry-core
80 ++ dramatiq.optional-dependencies.redis
81 ++ flask-limiter.optional-dependencies.redis;
83 pythonImportsCheck = [ "fittrackee" ];
85 nativeCheckInputs = with python.pkgs; [
97 postgresqlTestSetupPost = ''
98 export DATABASE_TEST_URL=postgresql://$PGUSER/$PGDATABASE?host=$PGHOST
101 doCheck = !stdenv.hostPlatform.isDarwin; # tests are a bit flaky on darwin
108 description = "Self-hosted outdoor activity tracker";
109 homepage = "https://github.com/SamR1/FitTrackee";
110 changelog = "https://github.com/SamR1/FitTrackee/blob/${src.rev}/CHANGELOG.md";
111 license = lib.licenses.agpl3Only;
112 maintainers = with lib.maintainers; [ traxys ];