python3Packages.fasttransform: init at 0.0.2

This commit is contained in:
Gaetan Lepage
2026-07-16 21:53:04 +00:00
parent 5612eefc08
commit 391c0a2c09
2 changed files with 60 additions and 0 deletions
@@ -0,0 +1,58 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
fastcore,
numpy,
plum-dispatch,
}:
buildPythonPackage (finalAttrs: {
pname = "fasttransform";
version = "0.0.2";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "AnswerDotAI";
repo = "fasttransform";
tag = finalAttrs.version;
hash = "sha256-d41645xOXkFv4rjFBfOXepYHGbYiCbHN2O30aePVVxM=";
};
# pkg_resources used to come with setuptools but was removed
postPatch = ''
substituteInPlace setup.py \
--replace-fail \
"from pkg_resources import parse_version" \
"from packaging.version import parse as parse_version"
'';
build-system = [
setuptools
];
dependencies = [
fastcore
numpy
plum-dispatch
];
pythonImportsCheck = [ "fasttransform" ];
# No tests
doCheck = false;
meta = {
description = "Main building block of data pipelines in fastai";
homepage = "https://github.com/AnswerDotAI/fasttransform";
changelog = "https://github.com/AnswerDotAI/fasttransform/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
})
+2
View File
@@ -5900,6 +5900,8 @@ self: super: with self; {
fasttext = callPackage ../development/python-modules/fasttext { };
fasttransform = callPackage ../development/python-modules/fasttransform { };
fastuuid = callPackage ../development/python-modules/fastuuid { };
faust-cchardet = callPackage ../development/python-modules/faust-cchardet { };