calibre-web: support flask-babel 3
This commit is contained in:
parent
89fae351e4
commit
3c24ba1ef0
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, nixosTests
|
, nixosTests
|
||||||
, python3
|
, python3
|
||||||
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
|
@ -43,6 +44,12 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
# and exit. This is gonna be used to configure calibre-web declaratively, as most of its configuration parameters
|
# and exit. This is gonna be used to configure calibre-web declaratively, as most of its configuration parameters
|
||||||
# are stored in the DB.
|
# are stored in the DB.
|
||||||
./db-migrations.patch
|
./db-migrations.patch
|
||||||
|
# Handle version 3.0 of flask-babel
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/janeczku/calibre-web/commit/94a6931d48d347ae6c07e2b5f0301e8cf97cf53d.patch";
|
||||||
|
excludes = [ "requirements.txt" ];
|
||||||
|
hash = "sha256-0DQ+LbIOOwjBXQh+b1w8dYQ3s+xZ6nFoH5GvgJdBAFI=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
# calibre-web doesn't follow setuptools directory structure. The following is taken from the script
|
# calibre-web doesn't follow setuptools directory structure. The following is taken from the script
|
||||||
|
@ -59,6 +66,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
--replace "cps = calibreweb:main" "calibre-web = calibreweb:main" \
|
--replace "cps = calibreweb:main" "calibre-web = calibreweb:main" \
|
||||||
--replace "chardet>=3.0.0,<4.1.0" "chardet>=3.0.0,<6" \
|
--replace "chardet>=3.0.0,<4.1.0" "chardet>=3.0.0,<6" \
|
||||||
--replace "Flask>=1.0.2,<2.1.0" "Flask>=1.0.2" \
|
--replace "Flask>=1.0.2,<2.1.0" "Flask>=1.0.2" \
|
||||||
|
--replace "Flask-Babel>=0.11.1,<2.1.0" "Flask-Babel>=0.11.1" \
|
||||||
--replace "Flask-Login>=0.3.2,<0.6.2" "Flask-Login>=0.3.2" \
|
--replace "Flask-Login>=0.3.2,<0.6.2" "Flask-Login>=0.3.2" \
|
||||||
--replace "flask-wtf>=0.14.2,<1.1.0" "flask-wtf>=0.14.2" \
|
--replace "flask-wtf>=0.14.2,<1.1.0" "flask-wtf>=0.14.2" \
|
||||||
--replace "lxml>=3.8.0,<4.9.0" "lxml>=3.8.0" \
|
--replace "lxml>=3.8.0,<4.9.0" "lxml>=3.8.0" \
|
||||||
|
|
Loading…
Reference in a new issue