at master 1.3 kB view raw
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 lib, 5 pytestCheckHook, 6 setuptools, 7 8 # dependencies 9 attrs, 10 babel, 11 fluent-syntax, 12 pytz, 13 typing-extensions, 14}: 15 16let 17 version = "0.4.0"; 18 19 src = fetchFromGitHub { 20 owner = "projectfluent"; 21 repo = "python-fluent"; 22 rev = "fluent.runtime@${version}"; 23 hash = "sha256-Crg6ybweOZ4B3WfLMOcD7+TxGEZPTHJUxr8ItLB4G+Y="; 24 }; 25in 26buildPythonPackage { 27 pname = "fluent-runtime"; 28 inherit version; 29 pyproject = true; 30 31 inherit src; 32 sourceRoot = "${src.name}/fluent.runtime"; 33 34 build-system = [ setuptools ]; 35 36 dependencies = [ 37 attrs 38 babel 39 fluent-syntax 40 pytz 41 typing-extensions 42 ]; 43 44 nativeCheckInputs = [ pytestCheckHook ]; 45 46 disabledTests = [ 47 # https://github.com/projectfluent/python-fluent/pull/203 48 "test_timeZone" 49 ]; 50 51 pythonImportsCheck = [ "fluent.runtime" ]; 52 53 meta = { 54 changelog = "https://github.com/projectfluent/python-fluent/blob/${src.rev}/fluent.runtime/CHANGELOG.rst"; 55 description = "Localization library for expressive translations"; 56 downloadPage = "https://github.com/projectfluent/python-fluent/releases/tag/${src.rev}"; 57 homepage = "https://projectfluent.org/python-fluent/fluent.runtime/${version}"; 58 license = lib.licenses.asl20; 59 maintainers = with lib.maintainers; [ getpsyched ]; 60 }; 61}