depot/third_party/nixpkgs/pkgs/development/python-modules/mutf8/default.nix
Default email a425ba4985 Project import generated by Copybara.
GitOrigin-RevId: 5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3
2021-12-30 14:39:12 +01:00

41 lines
728 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=";
};
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 ];
};
}