depot/third_party/nixpkgs/pkgs/development/python-modules/setuptools-gettext/default.nix

45 lines
1,008 B
Nix
Raw Normal View History

{
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 ];
};
}