at 24.11-pre 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fastprogress, 6 fastcore, 7 fastdownload, 8 torch, 9 torchvision, 10 matplotlib, 11 pillow, 12 scikit-learn, 13 scipy, 14 spacy, 15 pandas, 16 requests, 17 pythonOlder, 18}: 19 20buildPythonPackage rec { 21 pname = "fastai"; 22 version = "2.7.15"; 23 format = "setuptools"; 24 25 disabled = pythonOlder "3.7"; 26 27 src = fetchPypi { 28 inherit pname version; 29 hash = "sha256-8swg/RjN9exzjMVtKdVN51iH1IrRX501z1DDjTqFaSM="; 30 }; 31 32 propagatedBuildInputs = [ 33 fastprogress 34 fastcore 35 fastdownload 36 torchvision 37 matplotlib 38 pillow 39 scikit-learn 40 scipy 41 spacy 42 pandas 43 requests 44 ]; 45 46 doCheck = false; 47 pythonImportsCheck = [ "fastai" ]; 48 49 meta = with lib; { 50 homepage = "https://github.com/fastai/fastai"; 51 description = "The fastai deep learning library"; 52 mainProgram = "configure_accelerate"; 53 changelog = "https://github.com/fastai/fastai/blob/${version}/CHANGELOG.md"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ rxiao ]; 56 }; 57}