2023-02-16 00:34:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fastprogress
|
|
|
|
, fastcore
|
|
|
|
, fastdownload
|
|
|
|
, torch
|
|
|
|
, torchvision
|
|
|
|
, matplotlib
|
|
|
|
, pillow
|
|
|
|
, scikit-learn
|
|
|
|
, scipy
|
|
|
|
, spacy
|
|
|
|
, pandas
|
|
|
|
, requests
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fastai";
|
2024-02-02 12:49:15 +00:00
|
|
|
version = "2.7.14";
|
2023-02-16 00:34:31 +00:00
|
|
|
format = "setuptools";
|
2023-03-05 09:04:35 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-02-16 00:34:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-02 12:49:15 +00:00
|
|
|
hash = "sha256-QiVyYojI/xs7wYl3umhky0j+xzptNS7Fv+fLMRy/4jc=";
|
2023-02-16 00:34:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fastprogress
|
|
|
|
fastcore
|
|
|
|
fastdownload
|
|
|
|
torchvision
|
|
|
|
matplotlib
|
|
|
|
pillow
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
spacy
|
|
|
|
pandas
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "fastai" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/fastai/fastai";
|
|
|
|
description = "The fastai deep learning library";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "configure_accelerate";
|
2023-03-05 09:02:44 +00:00
|
|
|
changelog = "https://github.com/fastai/fastai/blob/${version}/CHANGELOG.md";
|
2023-02-16 00:34:31 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rxiao ];
|
|
|
|
};
|
|
|
|
}
|