depot/third_party/nixpkgs/pkgs/development/python-modules/python-fluent/fluent-runtime.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

61 lines
1.3 KiB
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
pytestCheckHook,
setuptools,
# dependencies
attrs,
babel,
fluent-syntax,
pytz,
typing-extensions,
}:
let
version = "0.4.0";
src = fetchFromGitHub {
owner = "projectfluent";
repo = "python-fluent";
rev = "fluent.runtime@${version}";
hash = "sha256-Crg6ybweOZ4B3WfLMOcD7+TxGEZPTHJUxr8ItLB4G+Y=";
};
in
buildPythonPackage {
pname = "fluent-runtime";
inherit version;
pyproject = true;
inherit src;
sourceRoot = "${src.name}/fluent.runtime";
build-system = [ setuptools ];
dependencies = [
attrs
babel
fluent-syntax
pytz
typing-extensions
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# https://github.com/projectfluent/python-fluent/pull/203
"test_timeZone"
];
pythonImportsCheck = [ "fluent.runtime" ];
meta = {
changelog = "https://github.com/projectfluent/python-fluent/blob/${src.rev}/fluent.runtime/CHANGELOG.rst";
description = "Localization library for expressive translations";
downloadPage = "https://github.com/projectfluent/python-fluent/releases/tag/${src.rev}";
homepage = "https://projectfluent.org/python-fluent/fluent.runtime/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ getpsyched ];
};
}