Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weblate: 5.8.3 -> 5.8.4 #357919

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkgs/by-name/we/weblate/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let
in
python.pkgs.buildPythonApplication rec {
pname = "weblate";
version = "5.8.3";
version = "5.8.4";

pyproject = true;

Expand All @@ -41,7 +41,7 @@ python.pkgs.buildPythonApplication rec {
owner = "WeblateOrg";
repo = "weblate";
rev = "refs/tags/weblate-${version}";
hash = "sha256-Kmna23jhhFRJ0ExplYNPFEaIAJxmwHU2azivfKHHnjs=";
hash = "sha256-8QghEZ6PU3ArQWH9d80YrLjsbjylMEvJIwrGre9NrX8=";
};

patches = [
Expand Down
53 changes: 53 additions & 0 deletions pkgs/development/python-modules/crochet/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
setuptools,
versioneer,
configparser,
twisted,
wrapt,
pytestCheckHook,
}:

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

pyproject = true;

disabled = pythonOlder "3.8";

src = fetchPypi {
inherit pname version;
hash = "sha256-fs5p3hzo5j/8CvjiMx7E64mNke1Ccar6TMw5hSO4HPk=";
};

# Remove vendored versioneer
postPatch = ''
rm versioneer.py
'';

build-system = [
setuptools
versioneer
];

dependencies = [
twisted
wrapt
];

nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = pname;

meta = with lib; {
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/${version}/docs/news.rst";
license = licenses.mit;
maintainers = with maintainers; [ erictapen ];
};
}
68 changes: 68 additions & 0 deletions pkgs/development/python-modules/fedora-messaging/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
poetry-core,
blinker,
click,
crochet,
jsonschema,
pika,
pyopenssl,
requests,
service-identity,
tomli,
twisted,
pytestCheckHook,
pytest-twisted,
pytest-mock,
treq,
}:

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

pyproject = true;

disabled = pythonOlder "3.8";

src = fetchPypi {
pname = "fedora_messaging";
inherit version;
hash = "sha256-7NsiDndNHTf8GZ4uIN1Hv4ZMuxwAjHT/CmkNW75HYJ4=";
};

build-system = [ poetry-core ];

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

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

pythonImportsCheck = "fedora_messaging";

meta = with lib; {
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/blob/v${version}/docs/changelog.md";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ erictapen ];
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@

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

pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-a1C+j4Zo0DJ9BWDn5Zsu4zAftcUixfPktAWdqiFJpiU=";
pname = "translation_finder";
inherit version;
hash = "sha256-4eTPqI2VBKd5ECJk5mmgrKOaIwLCNhmwCx+jv8G+lwI=";
};

patches = [ ./fix_tests.patch ];
Expand Down
13 changes: 0 additions & 13 deletions pkgs/development/python-modules/translation-finder/fix_tests.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,3 @@ index c3b020c..9be070d 100644
],
)

diff --git a/translation_finder/test_discovery.py b/translation_finder/test_discovery.py
index 1a0ca40..14caa4f 100644
--- a/translation_finder/test_discovery.py
+++ b/translation_finder/test_discovery.py
@@ -945,6 +945,9 @@ class JSONDiscoveryTest(DiscoveryTestCase):
"file_format": "json-nested",
"template": "src/app/[locale]/_translations/en.json",
},
+ {'filemask': '*/app/[locale]/_translations/cs.json', 'file_format': 'json-nested'},
+ {'filemask': '*/app/[locale]/_translations/de.json', 'file_format': 'json-nested'},
+ {'filemask': '*/app/[locale]/_translations/en.json', 'file_format': 'json-nested'}
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

buildPythonPackage rec {
pname = "weblate-language-data";
version = "2024.13";
version = "2024.14";
pyproject = true;

src = fetchPypi {
pname = "weblate_language_data";
inherit version;
hash = "sha256-fAT3dI3Tbu329BWaal/n4ka0JSVDzPrJLnzL7/LRjhs=";
hash = "sha256-Q03gtpdS/CVJusP/A6N3KbfFx/wwHWTlVDraCk6yL/0=";
};

build-system = [ setuptools ];
Expand Down
10 changes: 7 additions & 3 deletions pkgs/development/python-modules/weblate-schemas/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@
rfc3987,
strict-rfc3339,
pytestCheckHook,
fedora-messaging,
}:

buildPythonPackage rec {
pname = "weblate-schemas";
version = "2024.1";
version = "2024.2";

pyproject = true;

src = fetchPypi {
pname = "weblate_schemas";
inherit version;
hash = "sha256-nYPLD3VDO1Z97HI79J6Yjj3bWp1xKB79FWPCW146iz4=";
hash = "sha256-Y7hWqfv1gZ2sT2fNbWLVDzwbVdB/1rT/oND9p/mkYAs=";
};

build-system = [ setuptools ];
Expand All @@ -31,7 +32,10 @@ buildPythonPackage rec {
strict-rfc3339
];

nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytestCheckHook
fedora-messaging
];

pythonImportsCheck = [ "weblate_schemas" ];

Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2688,6 +2688,8 @@ self: super: with self; {

criticality-score = callPackage ../development/python-modules/criticality-score { };

crochet = callPackage ../development/python-modules/crochet { };

crocoddyl = toPythonModule (pkgs.crocoddyl.override {
pythonSupport = true;
python3Packages = self;
Expand Down Expand Up @@ -4476,6 +4478,8 @@ self: super: with self; {

feather-format = callPackage ../development/python-modules/feather-format { };

fedora-messaging = callPackage ../development/python-modules/fedora-messaging { };

feedfinder2 = callPackage ../development/python-modules/feedfinder2 { };

feedgen = callPackage ../development/python-modules/feedgen { };
Expand Down