2021-11-02 00:44:47 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, python3
|
|
|
|
, python3Packages
|
2021-11-03 07:01:17 +00:00
|
|
|
, nodePackages
|
2021-11-02 00:44:47 +00:00
|
|
|
, wkhtmltopdf
|
|
|
|
}:
|
|
|
|
|
|
|
|
with python3Packages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "odoo";
|
|
|
|
|
|
|
|
major = "15";
|
|
|
|
minor = "0";
|
2022-02-01 12:01:18 +00:00
|
|
|
patch = "20220126";
|
2021-11-02 00:44:47 +00:00
|
|
|
|
|
|
|
version = "${major}.${minor}.${patch}";
|
|
|
|
|
|
|
|
# latest release is at https://github.com/odoo/docker/blob/master/15.0/Dockerfile
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://nightly.odoo.com/${major}.${minor}/nightly/src/odoo_${version}.tar.gz";
|
|
|
|
name = "${pname}-${version}";
|
2022-02-01 12:01:18 +00:00
|
|
|
hash = "sha256-mofV0mNCdyzJecp0XegZBR/5NzHjis9kbpsUA/KJbZg=";
|
2021-11-02 00:44:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
mock
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wkhtmltopdf
|
2021-11-03 07:01:17 +00:00
|
|
|
nodePackages.rtlcss
|
2021-11-02 00:44:47 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# needs some investigation
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-11-03 07:01:17 +00:00
|
|
|
makeWrapperArgs = [ "--prefix" "PATH" ":" "${lib.makeBinPath [ wkhtmltopdf nodePackages.rtlcss ]}" ];
|
2021-11-02 00:44:47 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
Babel
|
|
|
|
chardet
|
|
|
|
decorator
|
|
|
|
docutils
|
|
|
|
ebaysdk
|
|
|
|
freezegun
|
|
|
|
gevent
|
|
|
|
greenlet
|
|
|
|
html2text
|
|
|
|
idna
|
|
|
|
jinja2
|
|
|
|
libsass
|
|
|
|
lxml
|
|
|
|
markupsafe
|
2021-11-30 22:18:59 +00:00
|
|
|
mock
|
2021-11-02 00:44:47 +00:00
|
|
|
num2words
|
|
|
|
ofxparse
|
|
|
|
passlib
|
|
|
|
pillow
|
|
|
|
polib
|
|
|
|
psutil
|
|
|
|
psycopg2
|
|
|
|
pydot
|
|
|
|
pyopenssl
|
|
|
|
pypdf2
|
|
|
|
pyserial
|
|
|
|
python-dateutil
|
|
|
|
ldap
|
|
|
|
python-stdnum
|
|
|
|
pytz
|
|
|
|
pyusb
|
|
|
|
qrcode
|
|
|
|
reportlab
|
|
|
|
requests
|
|
|
|
vobject
|
2021-11-30 22:18:59 +00:00
|
|
|
werkzeug
|
2021-11-02 00:44:47 +00:00
|
|
|
xlrd
|
|
|
|
XlsxWriter
|
|
|
|
xlwt
|
|
|
|
zeep
|
|
|
|
];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
tar xfz $src
|
|
|
|
cd odoo*
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open Source ERP and CRM";
|
|
|
|
homepage = "https://www.odoo.com/";
|
|
|
|
license = licenses.lgpl3Only;
|
2021-11-30 22:18:59 +00:00
|
|
|
maintainers = with maintainers; [ mkg20001 ];
|
2021-11-02 00:44:47 +00:00
|
|
|
};
|
|
|
|
}
|