nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fastprogress,
6 fastcore,
7 fastdownload,
8 torchvision,
9 matplotlib,
10 pillow,
11 scikit-learn,
12 scipy,
13 spacy,
14 pandas,
15 requests,
16}:
17
18buildPythonPackage rec {
19 pname = "fastai";
20 version = "2.8.6";
21 format = "setuptools";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-eZW96Upogr6qws6lD8eX2kywuBmTXsbG7vaQKLwx9y8=";
26 };
27
28 propagatedBuildInputs = [
29 fastprogress
30 fastcore
31 fastdownload
32 torchvision
33 matplotlib
34 pillow
35 scikit-learn
36 scipy
37 spacy
38 pandas
39 requests
40 ];
41
42 doCheck = false;
43 pythonImportsCheck = [ "fastai" ];
44
45 meta = {
46 homepage = "https://github.com/fastai/fastai";
47 description = "Fastai deep learning library";
48 mainProgram = "configure_accelerate";
49 changelog = "https://github.com/fastai/fastai/blob/${version}/CHANGELOG.md";
50 license = lib.licenses.asl20;
51 maintainers = with lib.maintainers; [ rxiao ];
52 };
53}