Unverified Commit e44cc8a5 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

trytond: 7.4.10 -> 7.6.2 (#417426)

parents c5f326be b14fc803
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  hatch-regex-commit,
  pytestCheckHook,
  pytest-cov-stub,
  argon2-cffi,
  bcrypt,
}:

buildPythonPackage rec {
  pname = "pwdlib";
  version = "0.2.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "frankie567";
    repo = "pwdlib";
    tag = "v${version}";
    hash = "sha256-aPrgn5zfKk72QslGzb0acCNnZ7m3lyIBjvu4yhfZhSQ=";
  };

  build-system = [
    hatchling
    hatch-regex-commit
  ];

  dependencies = [
    argon2-cffi
    bcrypt
  ];

  pythonImportsCheck = [ "pwdlib" ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-cov-stub
  ];

  meta = {
    description = "Modern password hashing for Python";
    changelog = "https://github.com/frankie567/pwdlib/releases/tag/v${version}";
    homepage = "https://github.com/frankie567/pwdlib";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ emaryn ];
  };
}
+17 −7
Original line number Diff line number Diff line
@@ -20,21 +20,24 @@
  weasyprint,
  gevent,
  pillow,
  pwdlib,
  simpleeval,
  withPostgresql ? true,
  psycopg2,
  unittestCheckHook,
  writableTmpDirAsHomeHook,
}:

buildPythonPackage rec {
  pname = "trytond";
  version = "7.4.10";
  version = "7.6.2";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-kzoZDcHNPjmsNxrQ11MAksK+24nI1YNmONQd21s3weA=";
    hash = "sha256-KD9gZ0ForX1iYQMYlsle2fJ+zlmQOymDf71p17aCr1k=";
  };

  build-system = [ setuptools ];
@@ -58,16 +61,23 @@ buildPythonPackage rec {
      weasyprint
      gevent
      pillow
      pwdlib
      simpleeval
    ]
    ++ relatorio.optional-dependencies.fodt
    ++ passlib.optional-dependencies.bcrypt
    ++ passlib.optional-dependencies.argon2
    ++ lib.optional withPostgresql psycopg2;

  nativeCheckInputs = [ unittestCheckHook ];
  # Fontconfig error: Cannot load default config file: No such file: (null)
  doCheck = false;

  nativeCheckInputs = [
    unittestCheckHook
    writableTmpDirAsHomeHook
  ];

  preCheck = ''
    export HOME=$(mktemp -d)
    export TRYTOND_DATABASE_URI="sqlite://"
    export DB_NAME=":memory:";
  '';
@@ -77,7 +87,7 @@ buildPythonPackage rec {
    "trytond.tests"
  ];

  meta = with lib; {
  meta = {
    description = "Server of the Tryton application platform";
    longDescription = ''
      The server for Tryton, a three-tier high-level general purpose
@@ -89,9 +99,9 @@ buildPythonPackage rec {
    '';
    homepage = "http://www.tryton.org/";
    changelog = "https://foss.heptapod.net/tryton/tryton/-/blob/trytond-${version}/trytond/CHANGELOG?ref_type=tags";
    license = licenses.gpl3Plus;
    license = lib.licenses.gpl3Plus;
    broken = stdenv.hostPlatform.isDarwin;
    maintainers = with maintainers; [
    maintainers = with lib.maintainers; [
      udono
      johbo
    ];
+2 −0
Original line number Diff line number Diff line
@@ -11977,6 +11977,8 @@ self: super: with self; {
  pvo = callPackage ../development/python-modules/pvo { };
  pwdlib = callPackage ../development/python-modules/pwdlib { };
  pweave = callPackage ../development/python-modules/pweave { };
  pwinput = callPackage ../development/python-modules/pwinput { };