3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/mutf8/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
728 B
Nix
Raw Normal View History

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