1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
54 lines
966 B
Nix
54 lines
966 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
fastprogress,
|
|
fastcore,
|
|
fastdownload,
|
|
torchvision,
|
|
matplotlib,
|
|
pillow,
|
|
scikit-learn,
|
|
scipy,
|
|
spacy,
|
|
pandas,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fastai";
|
|
version = "2.8.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-kq7ndxj8h5nBJTZ8wVenqSquZ6CoqTyde4lQO9rFybY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
fastprogress
|
|
fastcore
|
|
fastdownload
|
|
torchvision
|
|
matplotlib
|
|
pillow
|
|
scikit-learn
|
|
scipy
|
|
spacy
|
|
pandas
|
|
requests
|
|
];
|
|
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "fastai" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/fastai/fastai";
|
|
description = "Fastai deep learning library";
|
|
mainProgram = "configure_accelerate";
|
|
changelog = "https://github.com/fastai/fastai/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ rxiao ];
|
|
};
|
|
}
|