3
0
Fork 0
forked from mirrors/nixpkgs

Update pkgs/development/python-modules/ihatemoney/default.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Guillaume Girol 2022-01-23 20:45:59 +00:00 committed by GitHub
parent 10047fc2b3
commit 177f8cac9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,15 +95,10 @@ buildPythonPackage rec {
];
postPatch = ''
# upstream performed the update without needing to patch the code
# the original patch does not apply, sadly
# https://github.com/spiral-project/ihatemoney/pull/912
substituteInPlace setup.cfg --replace "Flask-WTF>=0.14.3,<1" "Flask-WTF>=0.14.3,<2"
# https://github.com/spiral-project/ihatemoney/pull/986
substituteInPlace setup.cfg --replace "SQLAlchemy>=1.3.0,<1.4" "SQLAlchemy>=1.3.0,<1.5"
# enabled by the patch above, remove on next release
substituteInPlace setup.cfg --replace "WTForms>=2.3.1,<2.4" "WTForms"
substituteInPlace setup.cfg \
--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 "WTForms>=2.3.1,<2.4" "WTForms"
'';
checkInputs = [