depot/third_party/nixpkgs/pkgs/development/python-modules/setuptools-gettext/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

44 lines
1,008 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
tomli,
pytestCheckHook,
gettext,
}:
buildPythonPackage rec {
pname = "setuptools-gettext";
version = "0.1.14";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "breezy-team";
repo = "setuptools-gettext";
rev = "refs/tags/v${version}";
hash = "sha256-05xKWRxmoI8tnRENuiK3Z3WNMyjgXIX5p3vhzSUeytQ=";
};
build-system = [ setuptools ];
dependencies = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
pythonImportsCheck = [ "setuptools_gettext" ];
nativeCheckInputs = [
pytestCheckHook
gettext
];
meta = {
changelog = "https://github.com/breezy-team/setuptools-gettext/releases/tag/v${version}";
description = "setuptools plugin for building mo files";
homepage = "https://github.com/breezy-team/setuptools-gettext";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ tomasajt ];
};
}