|
36 | 36 | xarray, |
37 | 37 | }: |
38 | 38 |
|
39 | | -buildPythonPackage rec { |
| 39 | +buildPythonPackage (finalAttrs: { |
40 | 40 | pname = "plotly"; |
41 | 41 | version = "6.5.2"; |
42 | 42 | pyproject = true; |
43 | 43 |
|
44 | 44 | src = fetchFromGitHub { |
45 | 45 | owner = "plotly"; |
46 | 46 | repo = "plotly.py"; |
47 | | - tag = "v${version}"; |
| 47 | + tag = "v${finalAttrs.version}"; |
48 | 48 | hash = "sha256-7rMatpaZvHuNPpiXR5eUHultqNnLER1iW+GR3dwgkyo="; |
49 | 49 | }; |
50 | 50 |
|
51 | 51 | postPatch = '' |
52 | 52 | substituteInPlace pyproject.toml \ |
53 | 53 | --replace-fail '"hatch", ' "" \ |
54 | 54 | --replace-fail "jupyter_packaging~=0.10.0" jupyter_packaging |
| 55 | + '' |
| 56 | + # AttributeError: module 'numpy' has no attribute 'in1d' |
| 57 | + + '' |
| 58 | + substituteInPlace \ |
| 59 | + tests/test_optional/test_px/test_px.py \ |
| 60 | + tests/test_optional/test_px/test_px_functions.py \ |
| 61 | + --replace-fail "np.in1d(" "np.isin(" |
| 62 | + '' |
| 63 | + + '' |
| 64 | + substituteInPlace plotly/figure_factory/_violin.py \ |
| 65 | + --replace-fail \ |
| 66 | + 'np.percentile(x, 50, interpolation="linear")' \ |
| 67 | + 'np.percentile(x, 50, method="linear")' \ |
| 68 | + --replace-fail \ |
| 69 | + 'np.percentile(x, 25, interpolation="lower")' \ |
| 70 | + 'np.percentile(x, 25, method="lower")' \ |
| 71 | + --replace-fail \ |
| 72 | + 'np.percentile(x, 75, interpolation="higher")' |
| 73 | + 'np.percentile(x, 75, method="higher")' |
55 | 74 | ''; |
56 | 75 |
|
57 | 76 | env.SKIP_NPM = true; |
@@ -90,7 +109,12 @@ buildPythonPackage rec { |
90 | 109 | which |
91 | 110 | xarray |
92 | 111 | ] |
93 | | - ++ lib.concatAttrValues optional-dependencies; |
| 112 | + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; |
| 113 | + |
| 114 | + pytestFlags = [ |
| 115 | + # pytest.PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated |
| 116 | + "-Wignore::pytest.PytestRemovedIn9Warning" |
| 117 | + ]; |
94 | 118 |
|
95 | 119 | disabledTests = [ |
96 | 120 | # failed pinning test, sensitive to dep versions |
@@ -151,4 +175,4 @@ buildPythonPackage rec { |
151 | 175 | sarahec |
152 | 176 | ]; |
153 | 177 | }; |
154 | | -} |
| 178 | +}) |
0 commit comments