Merge pull request #85027 from timokau/pymc3-unbreak
python3.pkgs.pymc3: unbreak; update arviz, tensorflow-probability
This commit is contained in:
commit
8febf8babe
@ -22,13 +22,13 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "arviz";
|
pname = "arviz";
|
||||||
version = "0.6.1";
|
version = "0.7.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "arviz-devs";
|
owner = "arviz-devs";
|
||||||
repo = "arviz";
|
repo = "arviz";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1qc4piz18hfik32gj4v65ckwv516mppq2ac0jyqs21lhqfwbgv9w";
|
sha256 = "03hj7bkkj6kfqdk6ri2mp53wk4k7xpafxk01vgs6k9zg3rlnq7ny";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -69,8 +69,18 @@ buildPythonPackage rec {
|
|||||||
# data_numpyro, data_pyro, data_pystan, and plots.
|
# data_numpyro, data_pyro, data_pystan, and plots.
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
cd arviz/tests/
|
cd arviz/tests/
|
||||||
HOME=$TMPDIR pytest test_{data_cmdstan,data_emcee,data,data_tfp,\
|
export HOME=$TMPDIR
|
||||||
diagnostics,plot_utils,rcparams,stats,stats_utils,utils}.py
|
pytest \
|
||||||
|
base_tests/test_data.py \
|
||||||
|
base_tests/test_diagnostics.py \
|
||||||
|
base_tests/test_plot_utils.py \
|
||||||
|
base_tests/test_rcparams.py \
|
||||||
|
base_tests/test_stats.py \
|
||||||
|
base_tests/test_stats_utils.py \
|
||||||
|
base_tests/test_utils.py \
|
||||||
|
external_tests/test_data_cmdstan.py \
|
||||||
|
external_tests/test_data_emcee.py \
|
||||||
|
external_tests/test_data_tfp.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
, tqdm
|
, tqdm
|
||||||
, six
|
, six
|
||||||
, h5py
|
, h5py
|
||||||
|
, arviz
|
||||||
|
, packaging
|
||||||
, pytest
|
, pytest
|
||||||
, nose
|
, nose
|
||||||
, parameterized
|
, parameterized
|
||||||
@ -37,6 +39,8 @@ buildPythonPackage rec {
|
|||||||
tqdm
|
tqdm
|
||||||
six
|
six
|
||||||
h5py
|
h5py
|
||||||
|
arviz
|
||||||
|
packaging
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
@ -1,15 +1,18 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, buildBazelPackage
|
, buildBazelPackage
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, python
|
, python
|
||||||
, setuptools
|
, setuptools
|
||||||
, wheel
|
, wheel
|
||||||
|
, absl-py
|
||||||
, tensorflow
|
, tensorflow
|
||||||
, six
|
, six
|
||||||
, numpy
|
, numpy
|
||||||
, decorator
|
, decorator
|
||||||
, cloudpickle
|
, cloudpickle
|
||||||
|
, gast
|
||||||
, hypothesis
|
, hypothesis
|
||||||
, scipy
|
, scipy
|
||||||
, matplotlib
|
, matplotlib
|
||||||
@ -18,7 +21,7 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "0.7";
|
version = "0.8.0";
|
||||||
pname = "tensorflow_probability";
|
pname = "tensorflow_probability";
|
||||||
|
|
||||||
# first build all binaries and generate setup.py using bazel
|
# first build all binaries and generate setup.py using bazel
|
||||||
@ -28,21 +31,37 @@ let
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tensorflow";
|
owner = "tensorflow";
|
||||||
repo = "probability";
|
repo = "probability";
|
||||||
rev = "v${version}";
|
rev = "${version}";
|
||||||
sha256 = "0sy9gmjcvmwciamqvd7kd9qw2wd7ksklk80815fsn7sj0wiqxjyd";
|
sha256 = "07cm8zba8n0ihzdm3k4a4rsg5v62xxsfvcw4h0niz91c0parqjqy";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "gast-0.3.patch";
|
||||||
|
url = "https://github.com/tensorflow/probability/commit/ae7a9d9771771ec1e7755a3588b9325f050a84cc.patch";
|
||||||
|
sha256 = "0kfhx30gshm8f3945na9yjjik71r20qmjzifbigaj4l8dwd9dz1a";
|
||||||
|
excludes = ["testing/*"];
|
||||||
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
name = "cloudpickle-1.2.patch";
|
||||||
|
url = "https://github.com/tensorflow/probability/commit/78ef12b5afe3f567d16c70b74015ed1ddff1b0c8.patch";
|
||||||
|
sha256 = "12ms2xcljvvrnig0j78s3wfv4yf3bm5ps4rgfgv5lg2a8mzpc1ga";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
# needed to create the output wheel in installPhase
|
# needed to create the output wheel in installPhase
|
||||||
python
|
python
|
||||||
setuptools
|
setuptools
|
||||||
wheel
|
wheel
|
||||||
|
absl-py
|
||||||
|
tensorflow
|
||||||
];
|
];
|
||||||
|
|
||||||
bazelTarget = ":pip_pkg";
|
bazelTarget = ":pip_pkg";
|
||||||
|
|
||||||
fetchAttrs = {
|
fetchAttrs = {
|
||||||
sha256 = "0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";
|
sha256 = "0135nxxvkmjzpd80r1g9fdkk9h62g0xlvp32g5zgk0hkma5kq0bx";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildAttrs = {
|
buildAttrs = {
|
||||||
@ -75,6 +94,7 @@ in buildPythonPackage {
|
|||||||
numpy
|
numpy
|
||||||
decorator
|
decorator
|
||||||
cloudpickle
|
cloudpickle
|
||||||
|
gast
|
||||||
];
|
];
|
||||||
|
|
||||||
# Listed here:
|
# Listed here:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user