nixpkgs/pkgs/applications/finance/odoo/default.nix

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

116 lines
2.2 KiB
Nix
Raw Normal View History

2021-11-02 00:44:47 +00:00
{ stdenv
, lib
2023-03-26 01:54:58 +00:00
, fetchFromGitHub
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
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 {
2022-05-15 03:52:41 +00:00
packageOverrides = self: super: {
flask = super.flask.overridePythonAttrs (old: rec {
2023-10-30 14:42:34 +00:00
version = "2.3.3";
2022-05-15 03:52:41 +00:00
src = old.src.override {
inherit version;
2023-10-30 14:42:34 +00:00
hash = "sha256-CcNHqSqn/0qOfzIGeV8w2CZlS684uHPQdEzVccpgnvw=";
2022-05-15 03:52:41 +00:00
};
});
werkzeug = super.werkzeug.overridePythonAttrs (old: rec {
2023-10-30 14:42:34 +00:00
version = "2.3.7";
2022-05-15 03:52:41 +00:00
src = old.src.override {
inherit version;
2023-10-30 14:42:34 +00:00
hash = "sha256-K4wORHtLnbzIXdl7butNy69si2w74L1lTiVVPgohV9g=";
2022-05-15 03:52:41 +00:00
};
});
};
};
2021-11-02 00:44:47 +00:00
2023-08-25 17:12:18 +00:00
odoo_version = "16.0";
2023-10-13 07:09:45 +00:00
odoo_release = "20231024";
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-25 17:12:18 +00:00
# latest release is at https://github.com/odoo/docker/blob/master/16.0/Dockerfile
2023-08-27 22:07:38 +00:00
src = fetchzip {
url = "https://nightly.odoo.com/${odoo_version}/nightly/src/odoo_${version}.zip";
2021-11-02 00:44:47 +00:00
name = "${pname}-${version}";
2023-10-13 07:09:45 +00:00
hash = "sha256-Ux8RfA7kWLKissBBY5wrfL+aKKw++5BxjP3Vw0JAOsk="; # 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
ebaysdk
freezegun
gevent
greenlet
idna
jinja2
libsass
lxml
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
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;
2021-11-30 22:18:59 +00:00
maintainers = with maintainers; [ mkg20001 ];
2021-11-02 00:44:47 +00:00
};
}