21 buildPythonPackage rec {
22 inherit (ctranslate2-cpp) pname version src;
23 format = "setuptools";
25 # https://github.com/OpenNMT/CTranslate2/tree/master/python
26 sourceRoot = "${src.name}/python";
37 propagatedBuildInputs = [
42 pythonImportsCheck = [
43 # https://opennmt.net/CTranslate2/python/overview.html
45 "ctranslate2.converters"
59 # run tests against build result, not sources
66 # AssertionError: assert 'int8' in {'float32'}
67 "test_get_supported_compute_types"
71 # TODO: ModuleNotFoundError: No module named 'opennmt'
72 "tests/test_opennmt_tf.py"
73 # OSError: We couldn't connect to 'https://huggingface.co' to load this file
74 "tests/test_transformers.py"
78 description = "Fast inference engine for Transformer models";
79 homepage = "https://github.com/OpenNMT/CTranslate2";
80 changelog = "https://github.com/OpenNMT/CTranslate2/blob/${src.rev}/CHANGELOG.md";
81 license = licenses.mit;
82 maintainers = with maintainers; [ hexa ];