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.cvxpy: fix build on aarch64-darwin
Weijia Wang
3 years ago
55258a5c
bc4ce318
+8
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
cvxpy
default.nix
osqp
default.nix
+4
pkgs/development/python-modules/cvxpy/default.nix
reviewed
···
9
9
, osqp
10
10
, scipy
11
11
, scs
12
12
+
, setuptools
12
13
, useOpenmp ? (!stdenv.isDarwin)
13
14
# Check inputs
14
15
, pytestCheckHook
···
34
33
osqp
35
34
scipy
36
35
scs
36
36
+
setuptools
37
37
];
38
38
39
39
# Required flags from https://github.com/cvxgrp/cvxpy/releases/tag/v1.1.11
···
51
49
disabledTests = [
52
50
"test_tv_inpainting"
53
51
"test_diffcp_sdp_example"
52
52
+
"test_huber"
53
53
+
"test_partial_problem"
54
54
] ++ lib.optionals stdenv.isAarch64 [
55
55
"test_ecos_bb_mi_lp_2" # https://github.com/cvxgrp/cvxpy/issues/1241#issuecomment-780912155
56
56
];
+4
pkgs/development/python-modules/osqp/default.nix
reviewed
···
21
21
sha256 = "b2fa17aae42a7ed498ec261b33f262bb4b3605e7e8464062159d9fae817f0d61";
22
22
};
23
23
24
24
+
postPatch = ''
25
25
+
sed -i 's/sp.random/np.random/g' src/osqp/tests/*.py
26
26
+
'';
27
27
+
24
28
SETUPTOOLS_SCM_PRETEND_VERSION = version;
25
29
26
30
nativeBuildInputs = [ cmake setuptools-scm ];