2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest,
|
|
|
|
pythonOlder,
|
2021-08-25 08:27:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mutf8";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "1.0.6";
|
|
|
|
format = "setuptools";
|
2021-08-25 08:27:29 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TkTech";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-30 13:39:12 +00:00
|
|
|
hash = "sha256-4Ojn3t0EbOVdrYEiY8JegJuvW9sz8jt9tKFwOluiGQo=";
|
2021-08-25 08:27:29 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2021-08-25 08:27:29 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
# Using pytestCheckHook results in test failures
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mutf8" ];
|
2021-08-25 08:27:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fast MUTF-8 encoder & decoder";
|
|
|
|
homepage = "https://github.com/TkTech/mutf8";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|