Unverified Commit e969a11f authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

weblate: 5.8.3 -> 5.9.2 and fix (#369307)

parents 8336f8ba 361ddcd4
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -26,12 +26,10 @@ let
in
python.pkgs.buildPythonApplication rec {
  pname = "weblate";
  version = "5.8.3";
  version = "5.9.2";

  pyproject = true;

  disabled = python.pythonOlder "3.11";

  outputs = [
    "out"
    "static"
@@ -41,7 +39,7 @@ python.pkgs.buildPythonApplication rec {
    owner = "WeblateOrg";
    repo = "weblate";
    tag = "weblate-${version}";
    hash = "sha256-Kmna23jhhFRJ0ExplYNPFEaIAJxmwHU2azivfKHHnjs=";
    hash = "sha256-/fsNQvIIgcTPZHHIwr8sruEJpPJTmXbevoxy1GPmOOU=";
  };

  patches = [
@@ -75,6 +73,7 @@ python.pkgs.buildPythonApplication rec {
    [
      aeidon
      ahocorasick-rs
      altcha
      (toPythonModule (borgbackup.override { python3 = python; }))
      celery
      certifi
@@ -103,6 +102,7 @@ python.pkgs.buildPythonApplication rec {
      gitpython
      hiredis
      html2text
      httpx
      iniparse
      jsonschema
      lxml
@@ -131,6 +131,7 @@ python.pkgs.buildPythonApplication rec {
      tesserocr
      translate-toolkit
      translation-finder
      unidecode
      user-agents
      weblate-language-data
      weblate-schemas
+33 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "altcha";
  version = "0.1.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "altcha-org";
    repo = "altcha-lib-py";
    tag = "v${version}";
    hash = "sha256-jQUzIriy7p43WfbJ2XtT/n3AQy+f2ByDl7zNBBAxZ4I=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "altcha" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Lightweight Python library for creating and verifying ALTCHA challenges";
    homepage = "https://github.com/altcha-org/altcha-lib-py";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ erictapen ];
  };
}
+48 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  twisted,
  wrapt,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "crochet";
  version = "2.1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "itamarst";
    repo = "crochet";
    tag = version;
    hash = "sha256-grymhvCC9zDBKhNnQC0o07hdLPV5KMWb6HSz/ntSbq8=";
  };

  # fix for python>=3.12
  postPatch = ''
    substituteInPlace versioneer.py \
      --replace-fail "SafeConfigParser()" "ConfigParser()" \
      --replace-fail "parser.readfp" "parser.read_file"
  '';

  build-system = [ setuptools ];

  dependencies = [
    twisted
    wrapt
  ];

  pythonImportsCheck = [ "crochet" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Library that makes it easier to use Twisted from regular blocking code";
    homepage = "https://github.com/itamarst/crochet";
    changelog = "https://github.com/itamarst/crochet/blob/${src.tag}/docs/news.rst";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ erictapen ];
  };
}
+65 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  blinker,
  click,
  crochet,
  jsonschema,
  pika,
  pyopenssl,
  requests,
  service-identity,
  tomli,
  twisted,
  pytest-mock,
  pytest-twisted,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "fedora-messaging";
  version = "3.6.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "fedora-infra";
    repo = "fedora-messaging";
    tag = "v${version}";
    hash = "sha256-t5jwEgKLSB8APie+TD3WpgPYcAAPzEQLA+jXGlWVuNU=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    blinker
    click
    crochet
    jsonschema
    pika
    pyopenssl
    requests
    service-identity
    tomli
    twisted
  ];

  pythonImportsCheck = [ "fedora_messaging" ];

  nativeCheckInputs = [
    pytest-mock
    pytest-twisted
    pytestCheckHook
  ];

  pytestFlagsArray = [ "tests/unit" ];

  meta = {
    description = "Library for sending AMQP messages with JSON schema in Fedora infrastructure";
    homepage = "https://github.com/fedora-infra/fedora-messaging";
    changelog = "https://github.com/fedora-infra/fedora-messaging/releases/tag/${src.tag}";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ erictapen ];
  };
}
+7 −7
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  setuptools,
  charset-normalizer,
  ruamel-yaml,
@@ -11,17 +11,17 @@

buildPythonPackage rec {
  pname = "translation-finder";
  version = "2.16";
  version = "2.19";

  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-a1C+j4Zo0DJ9BWDn5Zsu4zAftcUixfPktAWdqiFJpiU=";
  src = fetchFromGitHub {
    owner = "WeblateOrg";
    repo = "translation-finder";
    tag = version;
    hash = "sha256-Hc1KxmzlFqCLHSAgFF8cgxH0dTdUnBV/2T2ZkfzVvSw=";
  };

  patches = [ ./fix_tests.patch ];

  build-system = [ setuptools ];

  dependencies = [
Loading