depot/third_party/nixpkgs/pkgs/development/python-modules/translation-finder/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

45 lines
948 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
charset-normalizer,
ruamel-yaml,
weblate-language-data,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "translation-finder";
version = "2.16";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-a1C+j4Zo0DJ9BWDn5Zsu4zAftcUixfPktAWdqiFJpiU=";
};
patches = [ ./fix_tests.patch ];
build-system = [ setuptools ];
dependencies = [
charset-normalizer
ruamel-yaml
weblate-language-data
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "translation_finder" ];
meta = with lib; {
description = "Translation file finder for Weblate";
homepage = "https://github.com/WeblateOrg/translation-finder";
changelog = "https://github.com/WeblateOrg/translation-finder/blob/${version}/CHANGES.rst";
license = licenses.gpl3Only;
maintainers = with maintainers; [ erictapen ];
};
}