nixpkgs/pkgs/development/python-modules/jaconv/default.nix
2021-12-03 12:52:01 -08:00

39 lines
740 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "jaconv";
version = "0.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "ikegami-yukino";
repo = pname;
rev = "v${version}";
sha256 = "rityHi1JWWlV7+sAxNrlbcmfHmORZWrMZqXTRlsclhQ=";
};
checkInputs = [
nose
pytestCheckHook
];
pythonImportsCheck = [
"jaconv"
];
meta = with lib; {
description = "Python Japanese character interconverter for Hiragana, Katakana, Hankaku and Zenkaku";
homepage = "https://github.com/ikegami-yukino/jaconv";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}