mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #135485 from fabaff/mutf8
python3Packages.mutf8: init at 1.0.3
This commit is contained in:
commit
0d5fdac964
38
pkgs/development/python-modules/mutf8/default.nix
Normal file
38
pkgs/development/python-modules/mutf8/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -4708,6 +4708,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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user