25 buildPythonPackage rec {
26 pname = "transformers";
28 format = "setuptools";
30 disabled = pythonOlder "3.7";
32 src = fetchFromGitHub {
33 owner = "huggingface";
35 rev = "refs/tags/v${version}";
36 hash = "sha256-aGtTey+QK12URZcGNaRAlcaOphON4ViZOGdigtXU1g0=";
39 propagatedBuildInputs = [
50 ] ++ lib.optionals (pythonOlder "3.8") [
54 passthru.optional-dependencies = {
66 # onnxconverter-common
83 # onnxconverter-common
92 # Many tests require internet access.
95 pythonImportsCheck = [
100 homepage = "https://github.com/huggingface/transformers";
101 description = "Natural Language Processing for TensorFlow 2.0 and PyTorch";
102 changelog = "https://github.com/huggingface/transformers/releases/tag/v${version}";
103 license = licenses.asl20;
104 platforms = platforms.unix;
105 maintainers = with maintainers; [ pashashocky ];