From 1b965cd21019a1e431bac68a7baa6b27778d111e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 24 Aug 2021 01:30:04 +0200 Subject: [PATCH] python3Packages.mutf8: init at 1.0.3 --- .../python-modules/mutf8/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/mutf8/default.nix diff --git a/pkgs/development/python-modules/mutf8/default.nix b/pkgs/development/python-modules/mutf8/default.nix new file mode 100644 index 000000000000..e25d5a893863 --- /dev/null +++ b/pkgs/development/python-modules/mutf8/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytest +, pythonOlder +}: + +buildPythonPackage rec { + pname = "mutf8"; + version = "1.0.3"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "TkTech"; + repo = pname; + rev = "v${version}"; + sha256 = "0p9xczkhrf9d3n44k6kxbnk9sm831k5gkiagk6vm75vcmzm7zdqc"; + }; + + checkInputs = [ + pytest + ]; + + checkPhase = '' + # Using pytestCheckHook results in test failures + pytest + ''; + + pythonImportsCheck = [ "mutf8" ]; + + meta = with lib; { + description = "Fast MUTF-8 encoder & decoder"; + homepage = "https://github.com/TkTech/mutf8"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 428913333280..9ea2b1f41c93 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4704,6 +4704,8 @@ in { mutesync = callPackage ../development/python-modules/mutesync { }; + mutf8 = callPackage ../development/python-modules/mutf8 { }; + mwclient = callPackage ../development/python-modules/mwclient { }; mwdblib = callPackage ../development/python-modules/mwdblib { };