From 6c8de6f8b208257e05dd6a4a85f9190c54bfa2ec Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 16 Jul 2026 21:36:45 +0000 Subject: [PATCH] python3Packages.fastai: 2.8.6 -> 2.8.7 Changelog: https://github.com/fastai/fastai/blob/2.8.7/CHANGELOG.md --- .../python-modules/fastai/default.nix | 67 +++++++++++++------ 1 file changed, 47 insertions(+), 20 deletions(-) diff --git a/pkgs/development/python-modules/fastai/default.nix b/pkgs/development/python-modules/fastai/default.nix index 95098b61e44f..d1c56ae43b0a 100644 --- a/pkgs/development/python-modules/fastai/default.nix +++ b/pkgs/development/python-modules/fastai/default.nix @@ -1,53 +1,80 @@ { lib, buildPythonPackage, - fetchPypi, - fastprogress, + fetchFromGitHub, + + # build-system + setuptools, + + # dependencies + cloudpickle, fastcore, fastdownload, - torchvision, + fastprogress, + fasttransform, matplotlib, + packaging, + pandas, pillow, + plum-dispatch, + pyyaml, + requests, scikit-learn, scipy, spacy, - pandas, - requests, + torch, + torchvision, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "fastai"; - version = "2.8.6"; - format = "setuptools"; + version = "2.8.7"; + pyproject = true; + __structuredAttrs = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-eZW96Upogr6qws6lD8eX2kywuBmTXsbG7vaQKLwx9y8="; + src = fetchFromGitHub { + owner = "fastai"; + repo = "fastai"; + tag = finalAttrs.version; + hash = "sha256-qjBVqSVQV+v1Uc95Tz8NyLkKwCLdG+R7MkH+CugzY1Q="; }; - propagatedBuildInputs = [ - fastprogress + build-system = [ + setuptools + ]; + + dependencies = [ + cloudpickle fastcore fastdownload - torchvision + fastprogress + fasttransform matplotlib + packaging + pandas pillow + plum-dispatch + pyyaml + requests scikit-learn scipy spacy - pandas - requests + torch + torchvision ]; - doCheck = false; pythonImportsCheck = [ "fastai" ]; + # Tests fail at collection with: + # fixture 'f' not found + doCheck = false; + meta = { - homepage = "https://github.com/fastai/fastai"; description = "Fastai deep learning library"; + homepage = "https://github.com/fastai/fastai"; mainProgram = "configure_accelerate"; - changelog = "https://github.com/fastai/fastai/blob/${version}/CHANGELOG.md"; + changelog = "https://github.com/fastai/fastai/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ rxiao ]; }; -} +})