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