nixpkgs/pkgs/by-name/od/odoo/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

113 lines
2.2 KiB
Nix
Raw Normal View History

{ lib
, fetchgit
2023-08-27 22:07:38 +00:00
, fetchzip
2023-03-26 01:54:58 +00:00
, python310
, rtlcss
2021-11-02 00:44:47 +00:00
, wkhtmltopdf
2022-05-15 06:51:07 +00:00
, nixosTests
, odoo_version ? "17.0"
, odoo_release ? "20240610"
2021-11-02 00:44:47 +00:00
}:
2022-02-01 12:25:06 +00:00
let
2023-03-26 01:54:58 +00:00
python = python310.override {
packageOverrides = final: prev: {
# requirements.txt fixes docutils at 0.17; the default 0.21.1 tested throws exceptions
docutils-0_17 = prev.docutils.overridePythonAttrs (old: rec {
version = "0.17";
src = fetchgit {
url = "git://repo.or.cz/docutils.git";
rev = "docutils-${version}";
hash = "sha256-O/9q/Dg1DBIxKdNBOhDV16yy5ez0QANJYMjeovDoWX8=";
2022-05-15 03:52:41 +00:00
};
buildInputs = with prev; [setuptools];
2022-05-15 03:52:41 +00:00
});
};
};
2023-03-26 01:54:58 +00:00
in python.pkgs.buildPythonApplication rec {
pname = "odoo";
2022-05-15 06:46:30 +00:00
version = "${odoo_version}.${odoo_release}";
2021-11-02 00:44:47 +00:00
2022-05-15 03:52:41 +00:00
format = "setuptools";
2023-08-27 22:07:38 +00:00
src = fetchzip {
# find latest version on https://nightly.odoo.com/${odoo_version}/nightly/src
2023-08-27 22:07:38 +00:00
url = "https://nightly.odoo.com/${odoo_version}/nightly/src/odoo_${version}.zip";
2021-11-02 00:44:47 +00:00
name = "${pname}-${version}";
hash = "sha256-blibGJyaz+MxMazOXhPbGBAJWZoGubirwSnjVYyLBJs="; # odoo
2021-11-02 00:44:47 +00:00
};
# needs some investigation
doCheck = false;
2023-03-26 01:54:58 +00:00
makeWrapperArgs = [
"--prefix" "PATH" ":" "${lib.makeBinPath [ wkhtmltopdf rtlcss ]}"
2023-03-26 01:54:58 +00:00
];
2021-11-02 00:44:47 +00:00
2022-05-15 03:52:41 +00:00
propagatedBuildInputs = with python.pkgs; [
babel
2021-11-02 00:44:47 +00:00
chardet
2023-10-30 14:42:34 +00:00
cryptography
2021-11-02 00:44:47 +00:00
decorator
docutils-0_17 # sphinx has a docutils requirement >= 18
2021-11-02 00:44:47 +00:00
ebaysdk
freezegun
2024-07-16 15:51:34 +00:00
geoip2
2021-11-02 00:44:47 +00:00
gevent
greenlet
idna
jinja2
libsass
lxml
lxml-html-clean
2021-11-02 00:44:47 +00:00
markupsafe
num2words
ofxparse
passlib
pillow
polib
psutil
psycopg2
pydot
pyopenssl
pypdf2
pyserial
python-dateutil
python-ldap
2021-11-02 00:44:47 +00:00
python-stdnum
pytz
pyusb
qrcode
reportlab
requests
rjsmin
2023-10-30 14:42:34 +00:00
urllib3
2021-11-02 00:44:47 +00:00
vobject
2021-11-30 22:18:59 +00:00
werkzeug
2021-11-02 00:44:47 +00:00
xlrd
xlsxwriter
2021-11-02 00:44:47 +00:00
xlwt
zeep
2023-10-30 14:42:34 +00:00
setuptools
mock
2021-11-02 00:44:47 +00:00
];
2023-03-26 01:54:58 +00:00
# takes 5+ minutes and there are not files to strip
dontStrip = true;
2021-11-02 00:44:47 +00:00
2022-05-15 06:46:30 +00:00
passthru = {
updateScript = ./update.sh;
2022-05-15 06:51:07 +00:00
tests = {
inherit (nixosTests) odoo;
};
2022-05-15 06:46:30 +00:00
};
2021-11-02 00:44:47 +00:00
meta = with lib; {
description = "Open Source ERP and CRM";
homepage = "https://www.odoo.com/";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ mkg20001 siriobalmelli ];
2021-11-02 00:44:47 +00:00
};
}