mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
57 lines
1012 B
Nix
57 lines
1012 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fastprogress
|
|
, fastcore
|
|
, fastdownload
|
|
, torch
|
|
, torchvision
|
|
, matplotlib
|
|
, pillow
|
|
, scikit-learn
|
|
, scipy
|
|
, spacy
|
|
, pandas
|
|
, requests
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fastai";
|
|
version = "2.7.14";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QiVyYojI/xs7wYl3umhky0j+xzptNS7Fv+fLMRy/4jc=";
|
|
};
|
|
|
|
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";
|
|
mainProgram = "configure_accelerate";
|
|
changelog = "https://github.com/fastai/fastai/blob/${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ rxiao ];
|
|
};
|
|
}
|