2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
tomli,
|
|
|
|
pytestCheckHook,
|
|
|
|
gettext,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "setuptools-gettext";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.1.14";
|
|
|
|
pyproject = true;
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "breezy-team";
|
|
|
|
repo = "setuptools-gettext";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-05xKWRxmoI8tnRENuiK3Z3WNMyjgXIX5p3vhzSUeytQ=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "setuptools_gettext" ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
gettext
|
2023-01-20 10:41:00 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
meta = {
|
2023-01-20 10:41:00 +00:00
|
|
|
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";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [ tomasajt ];
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
}
|