2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2021-10-14 00:43:12 +00:00
|
|
|
, nixosTests
|
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, alembic
|
|
|
|
, aniso8601
|
|
|
|
, Babel
|
|
|
|
, blinker
|
2021-12-06 16:07:01 +00:00
|
|
|
, cachetools
|
2020-04-24 23:36:52 +00:00
|
|
|
, click
|
|
|
|
, dnspython
|
|
|
|
, email_validator
|
|
|
|
, flask
|
|
|
|
, flask-babel
|
|
|
|
, flask-cors
|
|
|
|
, flask_mail
|
|
|
|
, flask_migrate
|
|
|
|
, flask-restful
|
|
|
|
, flask_sqlalchemy
|
2021-12-06 16:07:01 +00:00
|
|
|
, flask-talisman
|
2020-04-24 23:36:52 +00:00
|
|
|
, flask_wtf
|
2020-07-18 16:06:22 +00:00
|
|
|
, debts
|
2020-04-24 23:36:52 +00:00
|
|
|
, idna
|
|
|
|
, itsdangerous
|
|
|
|
, jinja2
|
|
|
|
, Mako
|
|
|
|
, markupsafe
|
|
|
|
, python-dateutil
|
|
|
|
, pytz
|
2021-12-06 16:07:01 +00:00
|
|
|
, requests
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlalchemy
|
2021-10-14 00:43:12 +00:00
|
|
|
, sqlalchemy-utils
|
2020-07-18 16:06:22 +00:00
|
|
|
, sqlalchemy-continuum
|
2021-10-14 00:43:12 +00:00
|
|
|
, sqlalchemy-i18n
|
2020-04-24 23:36:52 +00:00
|
|
|
, werkzeug
|
|
|
|
, wtforms
|
|
|
|
, psycopg2 # optional, for postgresql support
|
2022-04-27 09:35:20 +00:00
|
|
|
, flask-testing
|
2020-09-25 04:45:31 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ihatemoney";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "5.2.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-uQgZBbpqqbZYHpR+GwHWX0c7di2rVvEz0jPRY6+BkkQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aniso8601
|
|
|
|
Babel
|
|
|
|
blinker
|
2021-12-06 16:07:01 +00:00
|
|
|
cachetools
|
2020-04-24 23:36:52 +00:00
|
|
|
click
|
2022-04-27 09:35:20 +00:00
|
|
|
debts
|
2020-04-24 23:36:52 +00:00
|
|
|
dnspython
|
|
|
|
email_validator
|
|
|
|
flask
|
|
|
|
flask_mail
|
2022-01-25 03:21:06 +00:00
|
|
|
flask_migrate
|
2022-04-27 09:35:20 +00:00
|
|
|
flask_wtf
|
|
|
|
flask-babel
|
|
|
|
flask-cors
|
2020-04-24 23:36:52 +00:00
|
|
|
flask-restful
|
2021-12-06 16:07:01 +00:00
|
|
|
flask-talisman
|
2020-04-24 23:36:52 +00:00
|
|
|
idna
|
|
|
|
itsdangerous
|
|
|
|
jinja2
|
|
|
|
Mako
|
|
|
|
markupsafe
|
2022-04-27 09:35:20 +00:00
|
|
|
psycopg2
|
2020-04-24 23:36:52 +00:00
|
|
|
python-dateutil
|
|
|
|
pytz
|
2021-12-06 16:07:01 +00:00
|
|
|
requests
|
2022-04-27 09:35:20 +00:00
|
|
|
sqlalchemy
|
2022-01-25 03:21:06 +00:00
|
|
|
sqlalchemy-continuum
|
2020-04-24 23:36:52 +00:00
|
|
|
werkzeug
|
2021-12-06 16:07:01 +00:00
|
|
|
wtforms
|
2022-01-25 03:21:06 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
2022-01-25 03:21:06 +00:00
|
|
|
substituteInPlace setup.cfg \
|
2022-03-05 16:20:37 +00:00
|
|
|
--replace "cachetools>=4.1,<5" "cachetools>=4.1" \
|
2022-01-25 03:21:06 +00:00
|
|
|
--replace "SQLAlchemy>=1.3.0,<1.4" "SQLAlchemy>=1.3.0,<1.5" \
|
2022-04-27 09:35:20 +00:00
|
|
|
--replace "WTForms>=2.3.1,<3.1" "WTForms"
|
2021-12-06 16:07:01 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
flask-testing
|
2021-10-14 00:43:12 +00:00
|
|
|
pytestCheckHook
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ihatemoney"
|
|
|
|
];
|
2022-01-25 03:21:06 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
disabledTests = [
|
2022-04-27 09:35:20 +00:00
|
|
|
# Requires running service
|
|
|
|
"test_notifications"
|
|
|
|
"test_invite"
|
|
|
|
"test_access_other_projects"
|
|
|
|
"test_authentication"
|
|
|
|
"test_manage_bills"
|
|
|
|
"test_member_delete_method"
|
|
|
|
"test_membership"
|
|
|
|
"test_bill_add_remove_add"
|
|
|
|
"test_clear_ip_records"
|
|
|
|
"test_disable_clear_no_new_records"
|
|
|
|
"test_logs_for_common_actions"
|
|
|
|
# Requires DNS resolution
|
|
|
|
"test_invitation_email_failure"
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
2020-09-25 04:45:31 +00:00
|
|
|
inherit (nixosTests.ihatemoney) ihatemoney-postgresql ihatemoney-sqlite;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Shared budget manager web application";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://ihatemoney.org";
|
|
|
|
license = licenses.beerware;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ symphorien ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|