diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2021-11-02 01:44:47 +0100 |
---|---|---|
committer | Maciej Krüger <mkg20001@gmail.com> | 2021-11-03 03:52:40 +0100 |
commit | 4a753cd83393a3618d97ec1ef09dbc516886023d (patch) | |
tree | b3d22941dee6718ab05a72c787fcab6094f2bdf3 /pkgs/applications/finance | |
parent | 89737cc3977a0bf48de84ccaa9f336c9eea7ddec (diff) |
odoo: init at 15.0.20211029
Diffstat (limited to 'pkgs/applications/finance')
-rw-r--r-- | pkgs/applications/finance/odoo/default.nix | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/pkgs/applications/finance/odoo/default.nix b/pkgs/applications/finance/odoo/default.nix new file mode 100644 index 0000000000000..aee699e853460 --- /dev/null +++ b/pkgs/applications/finance/odoo/default.nix @@ -0,0 +1,103 @@ +{ stdenv +, lib +, fetchurl +, python3 +, python3Packages +, wkhtmltopdf +}: + +with python3Packages; + +/* + +TODO: + For languages with right-to-left interface (such as Arabic or Hebrew), the package rtlcss is needed: + $ sudo npm install -g rtlcss + +*/ + +buildPythonApplication rec { + pname = "odoo"; + + major = "15"; + minor = "0"; + patch = "20211029"; + + 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}"; + sha256 = "sha256-/E+bLBbiz7fRyTwP+0AMpqbuRkOpE4B4P6kREIB4m1Q="; + }; + + nativeBuildInputs = [ + setuptools + wheel + mock + ]; + + buildInputs = [ + wkhtmltopdf + ]; + + # needs some investigation + doCheck = false; + + makeWrapperArgs = [ "--prefix" "PATH" ":" "${wkhtmltopdf}/bin" ]; + + propagatedBuildInputs = [ + Babel + chardet + decorator + docutils + ebaysdk + freezegun + gevent + greenlet + html2text + idna + jinja2 + libsass + lxml + markupsafe + num2words + ofxparse + passlib + pillow + polib + psutil + psycopg2 + pydot + pyopenssl + pypdf2 + pyserial + python-dateutil + ldap + python-stdnum + pytz + pyusb + qrcode + reportlab + requests + vobject + werkzeug1 + 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; + maintainers = [ maintainers.mkg20001 ]; + }; +} |