Skip to content

Commit 7665a47

Browse files
committed
odoo16: update and enable tests
Signed-off-by: phanirithvij <[email protected]>
1 parent 4b7c3e6 commit 7665a47

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed

pkgs/by-name/od/odoo16/package.nix

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,11 @@
77
}:
88

99
let
10+
odoo_version = "16.0";
11+
odoo_release = "20241010";
1012
python = python310.override {
1113
self = python;
12-
packageOverrides = self: super: {
13-
flask = super.flask.overridePythonAttrs (old: rec {
14-
version = "2.3.3";
15-
src = old.src.override {
16-
inherit version;
17-
hash = "sha256-CcNHqSqn/0qOfzIGeV8w2CZlS684uHPQdEzVccpgnvw=";
18-
};
19-
});
20-
werkzeug = super.werkzeug.overridePythonAttrs (old: rec {
21-
version = "2.3.7";
22-
src = old.src.override {
23-
inherit version;
24-
hash = "sha256-K4wORHtLnbzIXdl7butNy69si2w74L1lTiVVPgohV9g=";
25-
};
26-
disabledTests = old.disabledTests ++ [
27-
"test_response_body"
28-
];
29-
});
30-
};
3114
};
32-
33-
odoo_version = "16.0";
34-
odoo_release = "20231024";
3515
in python.pkgs.buildPythonApplication rec {
3616
pname = "odoo";
3717
version = "${odoo_version}.${odoo_release}";
@@ -41,13 +21,10 @@ in python.pkgs.buildPythonApplication rec {
4121
# latest release is at https://github.com/odoo/docker/blob/master/16.0/Dockerfile
4222
src = fetchzip {
4323
url = "https://nightly.odoo.com/${odoo_version}/nightly/src/odoo_${version}.zip";
44-
name = "${pname}-${version}";
45-
hash = "sha256-Ux8RfA7kWLKissBBY5wrfL+aKKw++5BxjP3Vw0JAOsk="; # odoo
24+
name = "odoo-${version}";
25+
hash = "sha256-ICe5UOy+Ga81fE66SnIhRz3+JEEbGfoz7ag53mkG4UM="; # odoo
4626
};
4727

48-
# needs some investigation
49-
doCheck = false;
50-
5128
makeWrapperArgs = [
5229
"--prefix" "PATH" ":" "${lib.makeBinPath [ wkhtmltopdf rtlcss ]}"
5330
];
@@ -66,6 +43,7 @@ in python.pkgs.buildPythonApplication rec {
6643
jinja2
6744
libsass
6845
lxml
46+
lxml-html-clean
6947
markupsafe
7048
num2words
7149
ofxparse

0 commit comments

Comments
 (0)