Skip to content

Commit

Permalink
odoo init
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Jan 14, 2019
1 parent 626233e commit 3872de5
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions pkgs/applications/office/odoo/default.nix
@@ -0,0 +1,105 @@
{ stdenv, fetchurl, python3Packages, glibcLocales, fetchpatch }:

let
inherit (python3Packages) buildPythonApplication buildPythonPackage fetchPypi;

num2words = buildPythonPackage rec {
pname = "num2words";
version = "0.5.9";
src = fetchPypi {
inherit pname version;
sha256 = "111c5w5139nlbnzgsi6k3smqrayhspgpwd4axf6ns1znrymrr7jf";
};
# propagatedBuildInputs = with python3Packages; [
# python-stdnum
# zeep
# ];
# tries external connections
# doCheck = false;
};

vatnumber = buildPythonPackage rec {
pname = "vatnumber";
version = "1.2";
src = fetchPypi {
inherit pname version;
sha256 = "0yrc5w5139nlbnzgsi6k3smqrayhspgpwd4axf6ns1znrymrr7jf";
};
propagatedBuildInputs = with python3Packages; [
python-stdnum
zeep
];
# tries external connections
doCheck = false;
};

in buildPythonApplication rec {
pname = "odoo";
version = "12.0";

src = fetchurl {
url = "https://download.odoocdn.com/${version}/nightly/src/odoo_${version}.latest.tar.gz";
sha256 = "1ji2kz22mx55px5xpagqis83grgadwdcx8dy71v7yk2c0b5r3j6b";
};

postPatch = ''
sed -i \
-e 's@pyldap.*@ldap3@i' \
requirements.txt
'';

buildInputs = [

];

propagatedBuildInputs = with python3Packages; [
Babel
chardet
decorator
docutils
# ebaysdk
feedparser
gevent
greenlet
html2text
jinja2
ldap3
# libsass
lxml
Mako
markupsafe
mock
num2words #
ofxparse
passlib
pillow
psutil
psycopg2
pydot
# pyldap # ldap3 instead
pyparsing
pypdf2
pyserial
python-dateutil
pytz
pyusb
qrcode
reportlab
requests
suds-jurko
vatnumber #
vobject
werkzeug
XlsxWriter
xlwt
xlrd
];

meta = with stdenv.lib; {
homepage = https://odoo.com;
description = "Open Source ERP";
license = licenses.isc;
maintainers = with maintainers; [ leenaars ];
platforms = platforms.linux;
};
}

1 comment on commit 3872de5

@nixos-discourse
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/odoo-on-nixos-in-nix-shell/14066/1

Please sign in to comment.