tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.sagamaker: relax protobuf and attrs
oxalica
3 years ago
53dfc257
16b4c7f0
+8
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
sagemaker
default.nix
+8
-5
pkgs/development/python-modules/sagemaker/default.nix
···
1
1
{ lib
2
2
, buildPythonPackage
3
3
, fetchPypi
4
4
+
, pythonRelaxDepsHook
4
5
, attrs
5
6
, boto3
6
7
, google-pasta
···
27
28
hash = "sha256-hs71bIoByh5S1ncsku+y4X2i0yU65FknJE05lEmnru4=";
28
29
};
29
30
31
31
+
nativeBuildInputs = [ pythonRelaxDepsHook ];
32
32
+
pythonRelaxDeps = [
33
33
+
# FIXME: Remove when >= 2.111.0
34
34
+
"attrs"
35
35
+
"protobuf"
36
36
+
];
37
37
+
30
38
propagatedBuildInputs = [
31
39
attrs
32
40
boto3
···
40
48
smdebug-rulesconfig
41
49
pandas
42
50
];
43
43
-
44
44
-
postPatch = ''
45
45
-
substituteInPlace setup.py \
46
46
-
--replace "attrs==20.3.0" "attrs>=20.3.0"
47
47
-
'';
48
51
49
52
postFixup = ''
50
53
[ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]