1 { stdenv, lib, fetchFromGitHub, fetchzip, python310, rtlcss, wkhtmltopdf
5 python = python310.override {
6 packageOverrides = self: super: {
7 pypdf2 = super.pypdf2.overridePythonAttrs (old: rec {
11 src = fetchFromGitHub {
15 fetchSubmodules = true;
16 hash = "sha256-WnRbsy/PJcotZqY9mJPLadrYqkXykOVifLIbDyNf4s4=";
19 nativeBuildInputs = [ ];
21 nativeCheckInputs = with self; [ pytestCheckHook pillow ];
23 flask = super.flask.overridePythonAttrs (old: rec {
25 src = old.src.override {
27 hash = "sha256-FZcuUBffBXXD1sCQuhaLbbkCWeYgrI1+qBOjlrrVtss=";
30 werkzeug = super.werkzeug.overridePythonAttrs (old: rec {
32 src = old.src.override {
34 hash = "sha256-HOCOgJPtZ9Y41jh5/Rujc1gX96gN42dNKT9ZhPJftuY=";
40 odoo_version = "15.0";
41 odoo_release = "20230816";
42 in python.pkgs.buildPythonApplication rec {
44 version = "${odoo_version}.${odoo_release}";
46 format = "setuptools";
48 # latest release is at https://github.com/odoo/docker/blob/master/15.0/Dockerfile
50 url = "https://nightly.odoo.com/${odoo_version}/nightly/src/odoo_${version}.zip";
51 name = "${pname}-${version}";
52 hash = "sha256-h81JA0o44DVtl/bZ52rGQfg54TigwQcNpcMjQbi0zIQ="; # odoo
55 # needs some investigation
62 "${lib.makeBinPath [ wkhtmltopdf rtlcss ]}"
65 propagatedBuildInputs = with python.pkgs; [
108 # takes 5+ minutes and there are not files to strip
112 tests = { inherit (nixosTests) odoo15; };
116 description = "Open Source ERP and CRM";
117 homepage = "https://www.odoo.com/";
118 license = licenses.lgpl3Only;
119 maintainers = with maintainers; [ mkg20001 ];