depot/third_party/nixpkgs/pkgs/development/python-modules/mutf8/default.nix
Default email 456cea78a8 Project import generated by Copybara.
GitOrigin-RevId: 88226ea038e538e09c272a7c56ba73c3f5eed57f
2021-08-25 10:27:29 +02:00

38 lines
700 B
Nix

{ 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 ];
};
}