push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,77 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
replaceVars,
# build-system
flit-scm,
wheel,
# dependencies
flit-core,
gettext,
# tests
build,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "flit-gettext";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "codingjoe";
repo = "flit-gettext";
rev = version;
hash = "sha256-rrGRkZ7GeFdDZ7m1oLq/7nEjx6NY2+YWvLrtfRr4+Jw=";
};
patches = [
(replaceVars ./msgfmt-path.patch {
msgfmt = lib.getExe' gettext "msgfmt";
})
];
nativeBuildInputs = [
flit-scm
wheel
];
propagatedBuildInputs = [ flit-core ];
optional-dependencies = {
scm = [ flit-scm ];
};
nativeCheckInputs = [
build
pytestCheckHook
pytest-cov-stub
wheel
]
++ optional-dependencies.scm;
disabledTests = [
# tests for missing msgfmt, but we always provide it
"test_compile_gettext_translations__no_gettext"
];
disabledTestPaths = [
# calls python -m build, but can't find build
"tests/test_core.py"
"tests/test_scm.py"
];
pythonImportsCheck = [ "flit_gettext" ];
meta = with lib; {
description = "Compiling gettext i18n messages during project bundling";
homepage = "https://github.com/codingjoe/flit-gettext";
license = licenses.bsd2;
maintainers = with maintainers; [ hexa ];
};
}