a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
41 lines
734 B
Nix
41 lines
734 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mutf8";
|
|
version = "1.0.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TkTech";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-4Ojn3t0EbOVdrYEiY8JegJuvW9sz8jt9tKFwOluiGQo=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|