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
{ lib
2
, buildPythonPackage
3
, fetchPypi
0
4
, attrs
5
, boto3
6
, google-pasta
···
27
hash = "sha256-hs71bIoByh5S1ncsku+y4X2i0yU65FknJE05lEmnru4=";
28
};
29
0
0
0
0
0
0
0
30
propagatedBuildInputs = [
31
attrs
32
boto3
···
40
smdebug-rulesconfig
41
pandas
42
];
43
-
44
-
postPatch = ''
45
-
substituteInPlace setup.py \
46
-
--replace "attrs==20.3.0" "attrs>=20.3.0"
47
-
'';
48
49
postFixup = ''
50
[ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]
···
1
{ lib
2
, buildPythonPackage
3
, fetchPypi
4
+
, pythonRelaxDepsHook
5
, attrs
6
, boto3
7
, google-pasta
···
28
hash = "sha256-hs71bIoByh5S1ncsku+y4X2i0yU65FknJE05lEmnru4=";
29
};
30
31
+
nativeBuildInputs = [ pythonRelaxDepsHook ];
32
+
pythonRelaxDeps = [
33
+
# FIXME: Remove when >= 2.111.0
34
+
"attrs"
35
+
"protobuf"
36
+
];
37
+
38
propagatedBuildInputs = [
39
attrs
40
boto3
···
48
smdebug-rulesconfig
49
pandas
50
];
0
0
0
0
0
51
52
postFixup = ''
53
[ "$($out/bin/sagemaker-upgrade-v2 --help 2>&1 | grep -cim1 'pandas failed to import')" -eq "0" ]