Merge pull request #182938 from onny/mako

This commit is contained in:
Sandro 2022-08-04 01:33:39 +02:00 committed by GitHub
commit 5cdff32463
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 6 deletions

View file

@ -13,6 +13,8 @@
# tests
, mock
, pytestCheckHook
, lingua
, chameleon
}:
buildPythonPackage rec {
@ -37,8 +39,10 @@ buildPythonPackage rec {
};
checkInputs = [
pytestCheckHook
chameleon
lingua
mock
pytestCheckHook
] ++ passthru.optional-dependencies.babel;
disabledTests = lib.optionals isPyPy [
@ -51,11 +55,6 @@ buildPythonPackage rec {
"test_bytestring_passthru"
];
disabledTestPaths = [
# lingua dependency is not packaged
"test/ext/test_linguaplugin.py"
];
meta = with lib; {
description = "Super-fast templating language";
homepage = "https://www.makotemplates.org/";

View file

@ -0,0 +1,35 @@
{ lib
, fetchPypi
, buildPythonPackage
, flit-core
, polib
, click }:
buildPythonPackage rec {
pname = "lingua";
version = "4.15.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-DhqUZ0HbKIpANhrQT/OP4EvwgZg0uKu4TEtTX+2bpO8=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
click
polib
];
pythonImportsCheck = [ "lingua" ];
meta = with lib; {
description = "Translation toolset";
homepage = "https://github.com/wichert/lingua";
license = licenses.bsd3;
maintainers = with maintainers; [ np ];
};
}

View file

@ -5097,6 +5097,8 @@ in {
line_profiler = callPackage ../development/python-modules/line_profiler { };
lingua = callPackage ../development/python-modules/lingua { };
linkify-it-py = callPackage ../development/python-modules/linkify-it-py { };
linode-api = callPackage ../development/python-modules/linode-api { };