Skip to content

Commit 34e7279

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

File tree

1 file changed

+17
-27
lines changed

1 file changed

+17
-27
lines changed

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

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
{ lib, fetchFromGitHub, fetchzip, python310, rtlcss, wkhtmltopdf
2-
, nixosTests }:
1+
{ lib
2+
, fetchFromGitHub
3+
, fetchzip
4+
, python310
5+
, rtlcss
6+
, wkhtmltopdf
7+
, nixosTests
8+
}:
39

410
let
11+
odoo_version = "15.0";
12+
odoo_release = "20241010";
513
python = python310.override {
614
self = python;
715
packageOverrides = self: super: {
816
pypdf2 = super.pypdf2.overridePythonAttrs (old: rec {
917
version = "1.28.6";
10-
format = "setuptools";
1118

1219
src = fetchFromGitHub {
1320
owner = "py-pdf";
@@ -17,43 +24,25 @@ let
1724
hash = "sha256-WnRbsy/PJcotZqY9mJPLadrYqkXykOVifLIbDyNf4s4=";
1825
};
1926

27+
dependencies = [ self.setuptools ];
28+
2029
nativeCheckInputs = with self; [ pytestCheckHook pillow ];
2130
});
22-
flask = super.flask.overridePythonAttrs (old: rec {
23-
version = "2.1.3";
24-
src = old.src.override {
25-
inherit version;
26-
hash = "sha256-FZcuUBffBXXD1sCQuhaLbbkCWeYgrI1+qBOjlrrVtss=";
27-
};
28-
});
29-
werkzeug = super.werkzeug.overridePythonAttrs (old: rec {
30-
version = "2.1.2";
31-
src = old.src.override {
32-
inherit version;
33-
hash = "sha256-HOCOgJPtZ9Y41jh5/Rujc1gX96gN42dNKT9ZhPJftuY=";
34-
};
35-
});
3631
};
3732
};
38-
39-
odoo_version = "15.0";
40-
odoo_release = "20230816";
4133
in python.pkgs.buildPythonApplication rec {
42-
pname = "odoo15";
34+
pname = "odoo";
4335
version = "${odoo_version}.${odoo_release}";
4436

4537
format = "setuptools";
4638

47-
# latest release is at https://github.com/odoo/docker/blob/master/15.0/Dockerfile
39+
# latest release is at https://github.com/odoo/docker/blob/5fb6a842747c296099d9384587cd89640eb7a615/15.0/Dockerfile#L58
4840
src = fetchzip {
4941
url = "https://nightly.odoo.com/${odoo_version}/nightly/src/odoo_${version}.zip";
50-
name = "${pname}-${version}";
51-
hash = "sha256-h81JA0o44DVtl/bZ52rGQfg54TigwQcNpcMjQbi0zIQ="; # odoo
42+
name = "odoo-${version}";
43+
hash = "sha256-Hkre6mghEiLrDwfB1BxGbqEm/zruHLwaS+eIFQKjl1o="; # odoo
5244
};
5345

54-
# needs some investigation
55-
doCheck = false;
56-
5746
makeWrapperArgs = [
5847
"--prefix"
5948
"PATH"
@@ -74,6 +63,7 @@ in python.pkgs.buildPythonApplication rec {
7463
jinja2
7564
libsass
7665
lxml
66+
lxml-html-clean
7767
markupsafe
7868
mock
7969
num2words

0 commit comments

Comments
 (0)