From a2dd4ea7d157a88687f2f7cb077ef1c094ba1d49 Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Sat, 18 Feb 2017 21:00:22 +0100 Subject: [PATCH 1/3] python-sql: init at 0.8 --- .../python-modules/python-sql/default.nix | 16 ++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/development/python-modules/python-sql/default.nix diff --git a/pkgs/development/python-modules/python-sql/default.nix b/pkgs/development/python-modules/python-sql/default.nix new file mode 100644 index 000000000000..30f734d57193 --- /dev/null +++ b/pkgs/development/python-modules/python-sql/default.nix @@ -0,0 +1,16 @@ +{ lib, fetchurl, buildPythonPackage }: + +buildPythonPackage rec { + name = "python-sql-${version}"; + version = "0.8"; + src = fetchurl { + url = "mirror://pypi/p/python-sql/${name}.tar.gz"; + sha256 = "0xik939sxqfqqbpgcsnfjnws692bjip32khgwhq1ycphfy7df3h2"; + }; + meta = { + homepage = http://python-sql.tryton.org/; + description = "A library to write SQL queries in a pythonic way"; + maintainers = with lib.maintainers; [ johbo ]; + license = lib.licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 335d7e9c62d3..b8dd178bfa56 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -332,6 +332,8 @@ in { pysideTools = callPackage ../development/python-modules/pyside/tools.nix { }; + python-sql = callPackage ../development/python-modules/python-sql { }; + pytimeparse = buildPythonPackage rec { pname = "pytimeparse"; version = "1.1.6"; From 79cba3d3fffc141a44489b8114fc292142b67a7b Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Sat, 18 Feb 2017 21:04:52 +0100 Subject: [PATCH 2/3] relatorio: init at 0.6.4 --- .../python-modules/relatorio/default.nix | 20 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/development/python-modules/relatorio/default.nix diff --git a/pkgs/development/python-modules/relatorio/default.nix b/pkgs/development/python-modules/relatorio/default.nix new file mode 100644 index 000000000000..4f2c3da8936e --- /dev/null +++ b/pkgs/development/python-modules/relatorio/default.nix @@ -0,0 +1,20 @@ +{ lib, fetchurl, buildPythonPackage, genshi, lxml }: + +buildPythonPackage rec { + name = "relatorio-${version}"; + version = "0.6.4"; + src = fetchurl { + url = "mirror://pypi/r/relatorio/${name}.tar.gz"; + sha256 = "0lincq79mzgazwd9gh41dybjh9c3n87r83pl8nk3j79aihyfk84z"; + }; + propagatedBuildInputs = [ + genshi + lxml + ]; + meta = { + homepage = http://relatorio.tryton.org/; + description = "A templating library able to output odt and pdf files"; + maintainers = with lib.maintainers; [ johbo ]; + license = lib.licenses.gpl3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b8dd178bfa56..d06eb1f2a3a6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -356,6 +356,8 @@ in { pyxml = if !isPy3k then callPackage ../development/python-modules/pyxml{ } else throw "pyxml not supported for interpreter ${python.executable}"; + relatorio = callPackage ../development/python-modules/relatorio { }; + rhpl = if !isPy3k then callPackage ../development/python-modules/rhpl {} else throw "rhpl not supported for interpreter ${python.executable}"; sip = callPackage ../development/python-modules/sip { }; From 6f8a44820e04c0635c258e7575b5d511fece6a59 Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Sat, 18 Feb 2017 16:27:25 +0100 Subject: [PATCH 3/3] trytond: init at 4.2.1 --- pkgs/applications/office/trytond/default.nix | 49 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/applications/office/trytond/default.nix diff --git a/pkgs/applications/office/trytond/default.nix b/pkgs/applications/office/trytond/default.nix new file mode 100644 index 000000000000..e77287faae25 --- /dev/null +++ b/pkgs/applications/office/trytond/default.nix @@ -0,0 +1,49 @@ +{ stdenv, fetchurl, python2Packages +, withPostgresql ? true }: + +with stdenv.lib; + +python2Packages.buildPythonApplication rec { + name = "trytond-${version}"; + version = "4.2.1"; + src = fetchurl { + url = "mirror://pypi/t/trytond/${name}.tar.gz"; + sha256 = "1ijjpbsf3s0s7ksbi7xgzss4jgr14q5hqsyf6d68l8hwardrwpj7"; + }; + + # Tells the tests which database to use + DB_NAME = ":memory:"; + + buildInputs = with python2Packages; [ + mock + ]; + propagatedBuildInputs = with python2Packages; ([ + dateutil + lxml + polib + python-sql + relatorio + werkzeug + wrapt + + # extra dependencies + bcrypt + pydot + python-Levenshtein + simplejson + ] ++ stdenv.lib.optional withPostgresql psycopg2); + meta = { + description = "The server of the Tryton application platform"; + longDescription = '' + The server for Tryton, a three-tier high-level general purpose + application platform under the license GPL-3 written in Python and using + PostgreSQL as database engine. + + It is the core base of a complete business solution providing + modularity, scalability and security. + ''; + homepage = http://www.tryton.org/; + license = licenses.gpl3Plus; + maintainers = [ maintainers.johbo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 171ce7a24646..04e7632f8986 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4121,6 +4121,8 @@ with pkgs; tryton = callPackage ../applications/office/tryton { }; + trytond = callPackage ../applications/office/trytond { }; + omapd = callPackage ../tools/security/omapd { }; ttf2pt1 = callPackage ../tools/misc/ttf2pt1 { };