tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.tensorly: 0.7.0 -> 0.8.0
Ben Darwin
3 years ago
e07bc3dc
ac33709e
+22
-13
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
tensorly
default.nix
+22
-13
pkgs/development/python-modules/tensorly/default.nix
reviewed
···
1
1
-
{ lib
1
1
+
{ stdenv
2
2
+
, lib
2
3
, buildPythonPackage
3
4
, fetchFromGitHub
4
5
, numpy
5
6
, pytestCheckHook
6
7
, pythonOlder
7
8
, scipy
8
8
-
, sparse
9
9
}:
10
10
11
11
buildPythonPackage rec {
12
12
pname = "tensorly";
13
13
-
version = "0.7.0";
13
13
+
version = "0.8.0";
14
14
format = "setuptools";
15
15
16
16
disabled = pythonOlder "3.7";
···
18
18
src = fetchFromGitHub {
19
19
owner = pname;
20
20
repo = pname;
21
21
-
rev = version;
22
22
-
sha256 = "sha256-VcX3pCczZQUYZaD7xrrkOcj0QPJt28cYTwpZm5D/X3c=";
21
21
+
rev = "refs/tags/${version}";
22
22
+
hash = "sha256-6iZvUgsoYf8fDGEuAODgfr4jCkiJwaJXlQUAsaOF9JU=";
23
23
};
24
24
25
25
propagatedBuildInputs = [
26
26
numpy
27
27
scipy
28
28
-
sparse
29
28
];
30
29
31
30
nativeCheckInputs = [
32
31
pytestCheckHook
33
32
];
34
33
35
35
-
postPatch = ''
36
36
-
# nose is not actually required for anything
37
37
-
# (including testing with the minimal dependencies)
38
38
-
substituteInPlace setup.py \
39
39
-
--replace ", 'nose'" ""
40
40
-
'';
41
41
-
42
34
pythonImportsCheck = [
43
35
"tensorly"
36
36
+
"tensorly.base"
37
37
+
"tensorly.cp_tensor"
38
38
+
"tensorly.tucker_tensor"
39
39
+
"tensorly.tt_tensor"
40
40
+
"tensorly.tt_matrix"
41
41
+
"tensorly.parafac2_tensor"
42
42
+
"tensorly.tenalg"
43
43
+
"tensorly.decomposition"
44
44
+
"tensorly.regression"
45
45
+
"tensorly.metrics"
46
46
+
"tensorly.random"
47
47
+
"tensorly.datasets"
48
48
+
"tensorly.plugins"
49
49
+
"tensorly.contrib"
44
50
];
45
51
46
52
pytestFlagsArray = [
···
54
48
];
55
49
56
50
disabledTests = [
51
51
+
# tries to download data:
52
52
+
"test_kinetic"
57
53
# AssertionError: Partial_SVD took too long, maybe full_matrices set wrongly
58
54
"test_svd_time"
59
55
];
···
65
57
homepage = "https://tensorly.org/";
66
58
license = licenses.bsd3;
67
59
maintainers = with maintainers; [ bcdarwin ];
60
60
+
broken = stdenv.isLinux && stdenv.isAarch64; # test failures: test_TTOI and test_validate_tucker_rank
68
61
};
69
62
}