python3Packages.arviz: patch requirements.txt and add zarr tests
arviz v0.11.4 has, according to its requirements.txt, a dependency on typing-extensions < 4. Currently, only typing-extensions v.4.0.1 are available in nixpkgs, while the above version constraint seems unnecessary, see this arviz PR: https://github.com/arviz-devs/arviz/pull/1948/files. This also activates tests that use zarr and to which changes are made in above PR. I thought those changes might be related to unconstraining the typing-extensions version, but looks like they are not.
This commit is contained in:
@@ -12,8 +12,10 @@
|
||||
, cloudpickle
|
||||
, scipy
|
||||
, setuptools
|
||||
, typing-extensions
|
||||
# , tensorflow-probability (incompatible version)
|
||||
, xarray
|
||||
, zarr
|
||||
, h5py
|
||||
#, pymc3 (broken)
|
||||
#, pyro-ppl (broken)
|
||||
@@ -46,12 +48,18 @@ buildPythonPackage rec {
|
||||
scipy
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "typing_extensions>=3.7.4.3,<4" "typing_extensions>=3.7.4.3"
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
bokeh
|
||||
emcee
|
||||
numba
|
||||
pytest
|
||||
cloudpickle
|
||||
zarr
|
||||
#tensorflow-probability (used by disabled tests)
|
||||
h5py
|
||||
#pymc3 (broken, used by disabled tests)
|
||||
@@ -83,6 +91,7 @@ buildPythonPackage rec {
|
||||
base_tests/test_stats_utils.py \
|
||||
base_tests/test_utils.py \
|
||||
base_tests/test_utils_numba.py \
|
||||
base_tests/test_data_zarr.py \
|
||||
external_tests/test_data_cmdstan.py \
|
||||
external_tests/test_data_emcee.py
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user