python310Packages.ihatemoney: 5.1.1 -> 5.2.0

This commit is contained in:
Fabian Affolter 2022-04-29 01:05:12 +02:00
parent 3f2a7e47e3
commit 9f4d90d738

View file

@ -1,6 +1,6 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, isPy27 , pythonOlder
, nixosTests , nixosTests
, fetchPypi , fetchPypi
, alembic , alembic
@ -29,7 +29,6 @@
, python-dateutil , python-dateutil
, pytz , pytz
, requests , requests
, six
, sqlalchemy , sqlalchemy
, sqlalchemy-utils , sqlalchemy-utils
, sqlalchemy-continuum , sqlalchemy-continuum
@ -39,68 +38,57 @@
, psycopg2 # optional, for postgresql support , psycopg2 # optional, for postgresql support
, flask-testing , flask-testing
, pytestCheckHook , pytestCheckHook
, fetchpatch
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ihatemoney"; pname = "ihatemoney";
version = "5.1.1"; version = "5.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0gsqba9qbs1dpmfys8qpiahy4pbn4khcc6mgmdnhssmkjsb94sx6"; sha256 = "sha256-uQgZBbpqqbZYHpR+GwHWX0c7di2rVvEz0jPRY6+BkkQ=";
}; };
disabled = isPy27;
propagatedBuildInputs = [ propagatedBuildInputs = [
aniso8601 aniso8601
Babel Babel
blinker blinker
cachetools cachetools
click click
debts
dnspython dnspython
email_validator email_validator
flask flask
flask-babel
flask-cors
flask_mail flask_mail
flask_migrate flask_migrate
flask_wtf
flask-babel
flask-cors
flask-restful flask-restful
flask-talisman flask-talisman
flask_wtf
idna idna
itsdangerous itsdangerous
jinja2 jinja2
Mako Mako
markupsafe markupsafe
psycopg2
python-dateutil python-dateutil
pytz pytz
requests requests
six sqlalchemy
sqlalchemy-continuum sqlalchemy-continuum
werkzeug werkzeug
wtforms wtforms
psycopg2
debts
];
patches = [
# fix build with wtforms 3. remove with next release
(fetchpatch {
url = "https://github.com/spiral-project/ihatemoney/commit/40ce32d9fa58a60d26a4d0df547b8deb709c330d.patch";
sha256 = "sha256-2ewOu21qhq/AOZaE9qrF5J6HH0h6ohFgjDb+BYjJnuQ=";
excludes = [ "setup.cfg" ];
})
]; ];
postPatch = '' postPatch = ''
substituteInPlace setup.cfg \ substituteInPlace setup.cfg \
--replace "cachetools>=4.1,<5" "cachetools>=4.1" \ --replace "cachetools>=4.1,<5" "cachetools>=4.1" \
--replace "Flask-WTF>=0.14.3,<1" "Flask-WTF>=0.14.3,<2" \
--replace "SQLAlchemy>=1.3.0,<1.4" "SQLAlchemy>=1.3.0,<1.5" \ --replace "SQLAlchemy>=1.3.0,<1.4" "SQLAlchemy>=1.3.0,<1.5" \
--replace "WTForms>=2.3.1,<2.4" "WTForms" \ --replace "WTForms>=2.3.1,<3.1" "WTForms"
--replace "Flask-Talisman>=0.8,<1" "Flask-Talisman>=0.8,<2" # https://github.com/spiral-project/ihatemoney/pull/1006
''; '';
checkInputs = [ checkInputs = [
@ -116,9 +104,15 @@ buildPythonPackage rec {
# Requires running service # Requires running service
"test_notifications" "test_notifications"
"test_invite" "test_invite"
# Tests are failing "test_access_other_projects"
"BudgetTestCase" "test_authentication"
"HistoryTestCase" "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 # Requires DNS resolution
"test_invitation_email_failure" "test_invitation_email_failure"
]; ];
@ -128,8 +122,8 @@ buildPythonPackage rec {
}; };
meta = with lib; { meta = with lib; {
description = "Shared budget manager web application";
homepage = "https://ihatemoney.org"; homepage = "https://ihatemoney.org";
description = "A simple shared budget manager web application";
license = licenses.beerware; license = licenses.beerware;
maintainers = with maintainers; [ symphorien ]; maintainers = with maintainers; [ symphorien ];
}; };