From 2a4169019ec45317aee802abaf69a0e7251a2b28 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Tue, 26 Jul 2022 10:19:38 +0200 Subject: [PATCH 1/2] python310Packages.Mako: Add missing check dependency --- pkgs/development/python-modules/Mako/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/Mako/default.nix b/pkgs/development/python-modules/Mako/default.nix index a74f9988ad7a..e3ac04924b35 100644 --- a/pkgs/development/python-modules/Mako/default.nix +++ b/pkgs/development/python-modules/Mako/default.nix @@ -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/"; From 7b7fe29819c714bb2209c971452506e78e1d1bbd Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Tue, 26 Jul 2022 10:25:56 +0200 Subject: [PATCH 2/2] python310Packages.lingua: init at 4.15.0 --- .../python-modules/lingua/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/lingua/default.nix diff --git a/pkgs/development/python-modules/lingua/default.nix b/pkgs/development/python-modules/lingua/default.nix new file mode 100644 index 000000000000..f116df7e2fda --- /dev/null +++ b/pkgs/development/python-modules/lingua/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4f430c6bb183..0d2810dd4904 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5071,6 +5071,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 { };