File tree Expand file tree Collapse file tree 2 files changed +5
-20
lines changed
python-modules/ctranslate2 Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change 2828in
2929stdenv . mkDerivation rec {
3030 pname = "ctranslate2" ;
31- version = "4.5 .0" ;
31+ version = "4.6 .0" ;
3232
3333 src = fetchFromGitHub {
3434 owner = "OpenNMT" ;
3535 repo = "CTranslate2" ;
3636 rev = "v${ version } " ;
37- hash = "sha256-2Znrt+TiQf/9YI1HYAikDfqbekAghOvxKoC05S18scQ =" ;
37+ hash = "sha256-EM2kunqtxo0BTIzrEomfaRsdav7sx6QEOhjDtjjSoYY =" ;
3838 fetchSubmodules = true ;
3939 } ;
4040
Original file line number Diff line number Diff line change 2020
2121buildPythonPackage rec {
2222 inherit ( ctranslate2-cpp ) pname version src ;
23- format = "setuptools" ;
23+ pyproject = true ;
2424
2525 # https://github.com/OpenNMT/CTranslate2/tree/master/python
2626 sourceRoot = "${ src . name } /python" ;
2727
28- nativeBuildInputs = [
28+ build-system = [
2929 pybind11
3030 setuptools
3131 ] ;
3232
3333 buildInputs = [ ctranslate2-cpp ] ;
3434
35- propagatedBuildInputs = [
35+ dependencies = [
3636 numpy
3737 pyyaml
3838 ] ;
@@ -59,21 +59,6 @@ buildPythonPackage rec {
5959 export HOME=$TMPDIR
6060 '' ;
6161
62- disabledTests = [
63- # AssertionError: assert 'int8' in {'float32'}
64- "test_get_supported_compute_types"
65- # Tensorflow (tf) not available in Python 3.12 yet
66- # To remove when https://github.com/NixOS/nixpkgs/pull/325224 is fixed
67- "test_opennmt_tf_model_conversion"
68- "test_opennmt_tf_model_quantization"
69- "test_opennmt_tf_model_conversion_invalid_vocab"
70- "test_opennmt_tf_model_conversion_invalid_dir"
71- "test_opennmt_tf_shared_embeddings_conversion"
72- "test_opennmt_tf_postnorm_transformer_conversion"
73- "test_opennmt_tf_gpt_conversion"
74- "test_opennmt_tf_multi_features"
75- ] ;
76-
7762 disabledTestPaths = [
7863 # TODO: ModuleNotFoundError: No module named 'opennmt'
7964 "tests/test_opennmt_tf.py"
You can’t perform that action at this time.
0 commit comments