python3Packages.pytorch-tabnet: init at 4.1.0 (#418462)

Sandro 9e71f29d 1d2c8ff3

Changed files
+62
pkgs
development
python-modules
pytorch-tabnet
top-level
+60
pkgs/development/python-modules/pytorch-tabnet/default.nix
···
+
{
+
lib,
+
buildPythonPackage,
+
fetchFromGitHub,
+
fsspec,
+
numpy,
+
poetry-core,
+
pytestCheckHook,
+
scikit-learn,
+
scipy,
+
torch,
+
tqdm,
+
typing-extensions,
+
}:
+
+
buildPythonPackage rec {
+
pname = "pytorch-tabnet";
+
version = "4.1.0";
+
pyproject = true;
+
+
src = fetchFromGitHub {
+
owner = "dreamquark-ai";
+
repo = "tabnet";
+
tag = "v${version}";
+
hash = "sha256-WyNGgAkNn5CaEuHWQ6Fjnvnrp+KONnxUQudd5ckvcsM=";
+
};
+
+
# Modernize poetry build setup
+
postPatch = ''
+
substituteInPlace pyproject.toml \
+
--replace-fail 'requires = ["poetry>=0.12"]' 'requires = ["poetry-core"]' \
+
--replace-fail 'build-backend = "poetry.masonry.api"' 'build-backend = "poetry.core.masonry.api"'
+
'';
+
+
build-system = [ poetry-core ];
+
+
dependencies = [
+
numpy
+
scikit-learn
+
scipy
+
torch
+
tqdm
+
typing-extensions
+
];
+
+
nativeCheckInputs = [
+
pytestCheckHook
+
fsspec
+
];
+
+
pythonImportsCheck = [ "pytorch_tabnet" ];
+
+
meta = {
+
description = "PyTorch implementation of TabNet";
+
homepage = "https://github.com/dreamquark-ai/tabnet";
+
changelog = "https://github.com/dreamquark-ai/tabnet/releases/tag/v${version}";
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ jherland ];
+
};
+
}
+2
pkgs/top-level/python-packages.nix
···
pytorch-pfn-extras = callPackage ../development/python-modules/pytorch-pfn-extras { };
+
pytorch-tabnet = callPackage ../development/python-modules/pytorch-tabnet { };
+
pytorch3d = callPackage ../development/python-modules/pytorch3d { };
pytorchviz = callPackage ../development/python-modules/pytorchviz { };