567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
58 lines
978 B
Nix
58 lines
978 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
unittestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
regex,
|
|
panphon,
|
|
marisa-trie,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "epitran";
|
|
version = "1.24";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dmort27";
|
|
repo = "epitran";
|
|
tag = version;
|
|
hash = "sha256-AH4q8J5oMaUVJ559qe/ZlJXlCcGdxWnxMhnZKCH5Rlk=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
regex
|
|
panphon
|
|
marisa-trie
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
unittestFlagsArray = [
|
|
"-s"
|
|
"test"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"epitran"
|
|
"epitran.backoff"
|
|
"epitran.vector"
|
|
];
|
|
|
|
meta = {
|
|
description = "Tools for transcribing languages into IPA";
|
|
homepage = "https://github.com/dmort27/epitran";
|
|
changelog = "https://github.com/dmort27/epitran/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ vizid ];
|
|
};
|
|
}
|