mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 12:14:40 +00:00
Merge pull request #156350 from symphorien/ihm-unbreak-once-again
This commit is contained in:
commit
39ea430092
@ -39,25 +39,9 @@
|
|||||||
, psycopg2 # optional, for postgresql support
|
, psycopg2 # optional, for postgresql support
|
||||||
, flask_testing
|
, flask_testing
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# ihatemoney is not really a library. It will only ever be imported
|
|
||||||
# by the interpreter of uwsgi. So overrides for its depencies are fine.
|
|
||||||
let
|
|
||||||
# sqlalchemy-continuum requires sqlalchemy < 1.4
|
|
||||||
pinned_sqlalchemy = sqlalchemy.overridePythonAttrs (
|
|
||||||
old: rec {
|
|
||||||
pname = "SQLAlchemy";
|
|
||||||
version = "1.3.24";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "06bmxzssc66cblk1hamskyv5q3xf1nh1py3vi6dka4lkpxy7gfzb";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
);
|
|
||||||
in
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ihatemoney";
|
pname = "ihatemoney";
|
||||||
version = "5.1.1";
|
version = "5.1.1";
|
||||||
@ -81,16 +65,7 @@ buildPythonPackage rec {
|
|||||||
flask-babel
|
flask-babel
|
||||||
flask-cors
|
flask-cors
|
||||||
flask_mail
|
flask_mail
|
||||||
(
|
flask_migrate
|
||||||
flask_migrate.override {
|
|
||||||
flask_sqlalchemy = flask_sqlalchemy.override {
|
|
||||||
sqlalchemy = pinned_sqlalchemy;
|
|
||||||
};
|
|
||||||
alembic = alembic.override {
|
|
||||||
sqlalchemy = pinned_sqlalchemy;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
)
|
|
||||||
flask-restful
|
flask-restful
|
||||||
flask-talisman
|
flask-talisman
|
||||||
flask_wtf
|
flask_wtf
|
||||||
@ -103,40 +78,27 @@ buildPythonPackage rec {
|
|||||||
pytz
|
pytz
|
||||||
requests
|
requests
|
||||||
six
|
six
|
||||||
(
|
sqlalchemy-continuum
|
||||||
(
|
|
||||||
sqlalchemy-continuum.override {
|
|
||||||
sqlalchemy = pinned_sqlalchemy;
|
|
||||||
sqlalchemy-utils = sqlalchemy-utils.override {
|
|
||||||
sqlalchemy = pinned_sqlalchemy;
|
|
||||||
};
|
|
||||||
sqlalchemy-i18n = sqlalchemy-i18n.override {
|
|
||||||
sqlalchemy = pinned_sqlalchemy;
|
|
||||||
sqlalchemy-utils = sqlalchemy-utils.override {
|
|
||||||
sqlalchemy = pinned_sqlalchemy;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
flask_sqlalchemy = flask_sqlalchemy.override {
|
|
||||||
sqlalchemy = pinned_sqlalchemy;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
).overridePythonAttrs (
|
|
||||||
old: {
|
|
||||||
doCheck = false;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
werkzeug
|
werkzeug
|
||||||
wtforms
|
wtforms
|
||||||
psycopg2
|
psycopg2
|
||||||
debts
|
debts
|
||||||
];
|
];
|
||||||
|
|
||||||
# upstream performed the update without needing to patch the code
|
patches = [
|
||||||
# the original patch does not apply, sadly
|
# fix build with wtforms 3. remove with next release
|
||||||
# https://github.com/spiral-project/ihatemoney/pull/912
|
(fetchpatch {
|
||||||
|
url = "https://github.com/spiral-project/ihatemoney/commit/40ce32d9fa58a60d26a4d0df547b8deb709c330d.patch";
|
||||||
|
sha256 = "sha256-2ewOu21qhq/AOZaE9qrF5J6HH0h6ohFgjDb+BYjJnuQ=";
|
||||||
|
excludes = [ "setup.cfg" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.cfg --replace "Flask-WTF>=0.14.3,<1" "Flask-WTF>=0.14.3,<2"
|
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 = [
|
checkInputs = [
|
||||||
@ -144,6 +106,8 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportChecks = [ "ihatemoney" ];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"test_notifications" # requires running service.
|
"test_notifications" # requires running service.
|
||||||
"test_invite" # requires running service.
|
"test_invite" # requires running service.
|
||||||
|
@ -13,11 +13,11 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "SQLAlchemy-Continuum";
|
pname = "SQLAlchemy-Continuum";
|
||||||
version = "1.3.11";
|
version = "1.3.12";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1c9yd9s98crqgs39rc2ld2r0nchgyjrfbjdlqb99y4hhc6lv04xw";
|
sha256 = "rlHl59MAQhsicMtZQT9rv1iQrDyVYJlawtyhvFaAM7o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -41,7 +41,5 @@ buildPythonPackage rec {
|
|||||||
homepage = "https://github.com/kvesteri/sqlalchemy-continuum/";
|
homepage = "https://github.com/kvesteri/sqlalchemy-continuum/";
|
||||||
description = "Versioning and auditing extension for SQLAlchemy";
|
description = "Versioning and auditing extension for SQLAlchemy";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
# https://github.com/kvesteri/sqlalchemy-continuum/issues/255
|
|
||||||
broken = lib.versionAtLeast sqlalchemy.version "1.4";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user