anchor.diff:  , werkzeug
   , wrapt
   , passlib
  -, pillow
  -, bcrypt
   , pydot
   , python-Levenshtein
  -, simplejson
   , html2text
  -, psycopg2
  -, withPostgresql ? true
  +, weasyprint
  +, gevent
  +, pillow
  +, withPostgresql ? true, psycopg2
  +, python
   }:
   
  -buildPythonApplication rec {
  +buildPythonPackage rec {
     pname = "trytond";
  -  version = "6.2.6";
  +  version = "6.4.0";
     format = "setuptools";
   
  -  disabled = pythonOlder "3.6";
  +  disabled = pythonOlder "3.7";
   
     src = fetchPypi {
       inherit pname version;
  -    sha256 = "sha256-Sof6A9lxU70YnCbboJr56CAdTL0cRbaRNxdvG5Tnqnw=";
  +    sha256 = "3c04d75c2a779b88b8c7ab6dd252cf4fc51f9546bf42760d10dbd1a17f61b288";
     };
   
  -  patches = [
  -    (fetchpatch {
  -      # werkzeug 2.1 compatibility for the tests
  -      url = "https://github.com/tryton/trytond/commit/86a50ca06cf0d79404dbd731141ed29f8e9fcb9d.patch";
  -      hash = "sha256-xY5Sdhkd0lEgscV7NHwX2YWxobWqQFElY5BJvDT+we8=";
  -    })
  -  ];
  -
  -  # Tells the tests which database to use
  -  DB_NAME = ":memory:";
  -
  -  buildInputs = [
  -    mock
  -  ];
  -
     propagatedBuildInputs = [
  +    defusedxml
       lxml
       relatorio
       genshi
  
positive.code:     python-sql
      werkzeug
      wrapt
      pillow
      passlib
  
      # extra dependencies
      bcrypt
      pydot
      python-Levenshtein
      simplejson
      html2text
    ] ++ lib.optional withPostgresql psycopg2;
  
    # If unset, trytond will try to mkdir /homeless-shelter
    preCheck = ''
      export HOME=$(mktemp -d)
    '';
  
    meta = with lib; {
  
negative.code: { lib
  , buildPythonPackage
  , fetchPypi
  , pythonOlder
  , defusedxml
  , lxml
  , relatorio
  , genshi
  