odoo{17,18,}: use pyproject = true, update dependency list (#427045)

This commit is contained in:
Maciej Krüger
2026-01-11 22:15:06 +00:00
committed by GitHub
3 changed files with 43 additions and 40 deletions
+14 -11
View File
@@ -17,8 +17,7 @@ in
python.pkgs.buildPythonApplication rec {
pname = "odoo";
version = "${odoo_version}.${odoo_release}";
format = "setuptools";
pyproject = true;
src = fetchzip {
# find latest version on https://nightly.odoo.com/${odoo_version}/nightly/src
@@ -28,22 +27,25 @@ python.pkgs.buildPythonApplication rec {
};
makeWrapperArgs = [
"--prefix"
"PATH"
":"
"${lib.makeBinPath [
wkhtmltopdf
rtlcss
]}"
"--prefix PATH : ${
lib.makeBinPath [
wkhtmltopdf
rtlcss
]
}"
];
propagatedBuildInputs = with python.pkgs; [
build-system = with python.pkgs; [
setuptools
distutils
];
dependencies = with python.pkgs; [
asn1crypto
babel
cbor2
chardet
cryptography
distutils
docutils
freezegun
geoip2
@@ -57,6 +59,7 @@ python.pkgs.buildPythonApplication rec {
markupsafe
num2words
ofxparse
openpyxl
passlib
pillow
polib
+13 -14
View File
@@ -31,8 +31,7 @@ in
python.pkgs.buildPythonApplication rec {
pname = "odoo";
version = "${odoo_version}.${odoo_release}";
format = "setuptools";
pyproject = true;
# latest release is at https://github.com/odoo/docker/blob/master/17.0/Dockerfile
src = fetchzip {
@@ -48,23 +47,24 @@ python.pkgs.buildPythonApplication rec {
];
makeWrapperArgs = [
"--prefix"
"PATH"
":"
"${lib.makeBinPath [
wkhtmltopdf
rtlcss
]}"
"--prefix PATH : ${
lib.makeBinPath [
wkhtmltopdf
rtlcss
]
}"
];
propagatedBuildInputs = with python.pkgs; [
build-system = with python.pkgs; [
setuptools
];
dependencies = with python.pkgs; [
babel
chardet
cryptography
decorator
docutils-0_17 # sphinx has a docutils requirement >= 18
ebaysdk
freezegun
geoip2
gevent
greenlet
@@ -102,8 +102,7 @@ python.pkgs.buildPythonApplication rec {
xlwt
zeep
setuptools
mock
setuptools # pkg_resources is imported during runtime
];
# takes 5+ minutes and there are not files to strip
+16 -15
View File
@@ -17,8 +17,7 @@ in
python.pkgs.buildPythonApplication rec {
pname = "odoo";
version = "${odoo_version}.${odoo_release}";
format = "setuptools";
pyproject = true;
src = fetchzip {
# find latest version on https://nightly.odoo.com/${odoo_version}/nightly/src
@@ -28,22 +27,27 @@ python.pkgs.buildPythonApplication rec {
};
makeWrapperArgs = [
"--prefix"
"PATH"
":"
"${lib.makeBinPath [
wkhtmltopdf
rtlcss
]}"
"--prefix PATH : ${
lib.makeBinPath [
wkhtmltopdf
rtlcss
]
}"
];
propagatedBuildInputs = with python.pkgs; [
build-system = with python.pkgs; [
setuptools
distutils
];
dependencies = with python.pkgs; [
asn1crypto
babel
cbor2
chardet
cryptography
decorator
docutils
distutils
ebaysdk
freezegun
geoip2
@@ -53,10 +57,10 @@ python.pkgs.buildPythonApplication rec {
jinja2
libsass
lxml
lxml-html-clean
markupsafe
num2words
ofxparse
openpyxl
passlib
pillow
polib
@@ -82,9 +86,6 @@ python.pkgs.buildPythonApplication rec {
xlsxwriter
xlwt
zeep
setuptools
mock
];
# takes 5+ minutes and there are not files to strip