110 lines
1.8 KiB
Nix
110 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
fetchgit,
|
|
fetchzip,
|
|
python312,
|
|
rtlcss,
|
|
wkhtmltopdf,
|
|
nixosTests,
|
|
}:
|
|
|
|
let
|
|
odoo_version = "18.0";
|
|
odoo_release = "20241010";
|
|
python = python312.override {
|
|
self = python;
|
|
};
|
|
in
|
|
python.pkgs.buildPythonApplication rec {
|
|
pname = "odoo";
|
|
version = "${odoo_version}.${odoo_release}";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchzip {
|
|
# find latest version on https://nightly.odoo.com/${odoo_version}/nightly/src
|
|
url = "https://nightly.odoo.com/${odoo_version}/nightly/src/odoo_${version}.zip";
|
|
name = "odoo-${version}";
|
|
hash = "sha256-TUfLyB0m8XyEiS493Q/ECgSJutAd1rtWX93f3mwfOK0="; # odoo
|
|
};
|
|
|
|
makeWrapperArgs = [
|
|
"--prefix"
|
|
"PATH"
|
|
":"
|
|
"${lib.makeBinPath [
|
|
wkhtmltopdf
|
|
rtlcss
|
|
]}"
|
|
];
|
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
babel
|
|
chardet
|
|
cryptography
|
|
decorator
|
|
docutils
|
|
distutils
|
|
ebaysdk
|
|
freezegun
|
|
geoip2
|
|
gevent
|
|
greenlet
|
|
idna
|
|
jinja2
|
|
libsass
|
|
lxml
|
|
lxml-html-clean
|
|
markupsafe
|
|
num2words
|
|
ofxparse
|
|
passlib
|
|
pillow
|
|
polib
|
|
psutil
|
|
psycopg2
|
|
pydot
|
|
pyopenssl
|
|
pypdf2
|
|
pyserial
|
|
python-dateutil
|
|
python-ldap
|
|
python-stdnum
|
|
pytz
|
|
pyusb
|
|
qrcode
|
|
reportlab
|
|
requests
|
|
rjsmin
|
|
urllib3
|
|
vobject
|
|
werkzeug
|
|
xlrd
|
|
xlsxwriter
|
|
xlwt
|
|
zeep
|
|
|
|
setuptools
|
|
mock
|
|
];
|
|
|
|
# takes 5+ minutes and there are not files to strip
|
|
dontStrip = true;
|
|
|
|
passthru = {
|
|
updateScript = ./update.sh;
|
|
tests = {
|
|
inherit (nixosTests) odoo;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Open Source ERP and CRM";
|
|
homepage = "https://www.odoo.com/";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [
|
|
mkg20001
|
|
siriobalmelli
|
|
];
|
|
};
|
|
}
|