mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
odoo: init at 15.0.20211029
This commit is contained in:
parent
89737cc397
commit
4a753cd833
103
pkgs/applications/finance/odoo/default.nix
Normal file
103
pkgs/applications/finance/odoo/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -3378,6 +3378,8 @@ with pkgs;
|
||||
|
||||
obinskit = callPackage ../applications/misc/obinskit {};
|
||||
|
||||
odoo = callPackage ../applications/finance/odoo {};
|
||||
|
||||
odafileconverter = libsForQt5.callPackage ../applications/graphics/odafileconverter {};
|
||||
|
||||
ossutil = callPackage ../tools/admin/ossutil {};
|
||||
|
Loading…
Reference in New Issue
Block a user