nixpkgs/pkgs/development/python-modules/tensorly/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
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
2026-01-11 09:34:20 -08:00

66 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
pytestCheckHook,
scipy,
setuptools,
}:
buildPythonPackage rec {
pname = "tensorly";
version = "0.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tensorly";
repo = "tensorly";
tag = version;
hash = "sha256-A6Zlp8fa7XFgf4qpg7SEtNLlYSNtDGLuRUEfzD+crQc=";
};
build-system = [ setuptools ];
dependencies = [
numpy
scipy
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"tensorly"
"tensorly.base"
"tensorly.cp_tensor"
"tensorly.tucker_tensor"
"tensorly.tt_tensor"
"tensorly.tt_matrix"
"tensorly.parafac2_tensor"
"tensorly.tenalg"
"tensorly.decomposition"
"tensorly.regression"
"tensorly.solvers"
"tensorly.metrics"
"tensorly.random"
"tensorly.datasets"
"tensorly.plugins"
"tensorly.contrib"
];
enabledTestPaths = [ "tensorly" ];
disabledTests = [
# this can fail on hydra and other peoples machines, check with others before re-enabling
# AssertionError: Partial_SVD took too long, maybe full_matrices set wrongly
"test_svd_time"
];
meta = {
description = "Tensor learning in Python";
homepage = "https://tensorly.org/";
changelog = "https://github.com/tensorly/tensorly/releases/tag/${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}