2021-12-06 16:07:01 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
2022-06-26 10:26:21 +00:00
|
|
|
, python39
|
2021-12-06 16:07:01 +00:00
|
|
|
, nodePackages
|
|
|
|
, wkhtmltopdf
|
2022-06-16 17:23:12 +00:00
|
|
|
, nixosTests
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
let
|
2022-06-26 10:26:21 +00:00
|
|
|
python = python39.override {
|
2022-05-18 14:49:53 +00:00
|
|
|
packageOverrides = self: super: {
|
|
|
|
click = super.click.overridePythonAttrs (old: rec {
|
|
|
|
version = "7.1.2";
|
|
|
|
src = old.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
flask = super.flask.overridePythonAttrs (old: rec {
|
|
|
|
version = "1.1.4";
|
|
|
|
src = old.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "0fbeb6180d383a9186d0d6ed954e0042ad9f18e0e8de088b2b419d526927d196";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
itsdangerous = super.itsdangerous.overridePythonAttrs (old: rec {
|
|
|
|
version = "1.1.0";
|
|
|
|
src = old.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
jinja2 = super.jinja2.overridePythonAttrs (old: rec {
|
|
|
|
version = "2.11.3";
|
|
|
|
src = old.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
markupsafe = super.markupsafe.overridePythonAttrs (old: rec {
|
|
|
|
version = "2.0.1";
|
|
|
|
src = old.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
werkzeug = super.werkzeug.overridePythonAttrs (old: rec {
|
|
|
|
version = "1.0.1";
|
|
|
|
src = old.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c";
|
|
|
|
};
|
|
|
|
checkInputs = old.checkInputs ++ (with self; [
|
|
|
|
requests
|
|
|
|
]);
|
|
|
|
disabledTests = old.disabledTests ++ [
|
|
|
|
# ResourceWarning: unclosed file
|
|
|
|
"test_basic"
|
|
|
|
"test_date_to_unix"
|
|
|
|
"test_easteregg"
|
|
|
|
"test_file_rfc2231_filename_continuations"
|
|
|
|
"test_find_terminator"
|
|
|
|
"test_save_to_pathlib_dst"
|
|
|
|
];
|
|
|
|
disabledTestPaths = old.disabledTestPaths ++ [
|
|
|
|
# ResourceWarning: unclosed file
|
|
|
|
"tests/test_http.py"
|
|
|
|
];
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in python.pkgs.buildPythonApplication rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "odoo";
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
odoo_version = "15.0";
|
|
|
|
odoo_release = "20220506";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "${odoo_version}.${odoo_release}";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# latest release is at https://github.com/odoo/docker/blob/master/15.0/Dockerfile
|
|
|
|
src = fetchurl {
|
2022-06-16 17:23:12 +00:00
|
|
|
url = "https://nightly.odoo.com/${odoo_version}/nightly/src/odoo_${version}.tar.gz";
|
2021-12-06 16:07:01 +00:00
|
|
|
name = "${pname}-${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "0mwlmfz5nhvg483ldrmlrjhwaf284c0c0pxf0fb0sfx2dnjjj3ib"; # odoo
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# needs some investigation
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
makeWrapperArgs = [ "--prefix" "PATH" ":" "${lib.makeBinPath [ wkhtmltopdf nodePackages.rtlcss ]}" ];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
|
|
babel
|
2021-12-06 16:07:01 +00:00
|
|
|
chardet
|
|
|
|
decorator
|
|
|
|
docutils
|
|
|
|
ebaysdk
|
|
|
|
freezegun
|
|
|
|
gevent
|
|
|
|
greenlet
|
|
|
|
html2text
|
|
|
|
idna
|
|
|
|
jinja2
|
|
|
|
libsass
|
|
|
|
lxml
|
|
|
|
markupsafe
|
2021-12-26 17:43:05 +00:00
|
|
|
mock
|
2021-12-06 16:07:01 +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-12-26 17:43:05 +00:00
|
|
|
werkzeug
|
2021-12-06 16:07:01 +00:00
|
|
|
xlrd
|
|
|
|
XlsxWriter
|
|
|
|
xlwt
|
|
|
|
zeep
|
|
|
|
];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
tar xfz $src
|
|
|
|
cd odoo*
|
|
|
|
'';
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = ./update.sh;
|
|
|
|
tests = {
|
|
|
|
inherit (nixosTests) odoo;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Open Source ERP and CRM";
|
|
|
|
homepage = "https://www.odoo.com/";
|
|
|
|
license = licenses.lgpl3Only;
|
2021-12-26 17:43:05 +00:00
|
|
|
maintainers = with maintainers; [ mkg20001 ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|