mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
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 {
|
||||
pname = "arviz";
|
||||
version = "0.6.1";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "arviz-devs";
|
||||
repo = "arviz";
|
||||
rev = version;
|
||||
sha256 = "1qc4piz18hfik32gj4v65ckwv516mppq2ac0jyqs21lhqfwbgv9w";
|
||||
sha256 = "03hj7bkkj6kfqdk6ri2mp53wk4k7xpafxk01vgs6k9zg3rlnq7ny";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -69,8 +69,18 @@ buildPythonPackage rec {
|
|||
# data_numpyro, data_pyro, data_pystan, and plots.
|
||||
checkPhase = ''
|
||||
cd arviz/tests/
|
||||
HOME=$TMPDIR pytest test_{data_cmdstan,data_emcee,data,data_tfp,\
|
||||
diagnostics,plot_utils,rcparams,stats,stats_utils,utils}.py
|
||||
export HOME=$TMPDIR
|
||||
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; {
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
, tqdm
|
||||
, six
|
||||
, h5py
|
||||
, arviz
|
||||
, packaging
|
||||
, pytest
|
||||
, nose
|
||||
, parameterized
|
||||
|
@ -37,6 +39,8 @@ buildPythonPackage rec {
|
|||
tqdm
|
||||
six
|
||||
h5py
|
||||
arviz
|
||||
packaging
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, buildBazelPackage
|
||||
, buildPythonPackage
|
||||
, python
|
||||
, setuptools
|
||||
, wheel
|
||||
, absl-py
|
||||
, tensorflow
|
||||
, six
|
||||
, numpy
|
||||
, decorator
|
||||
, cloudpickle
|
||||
, gast
|
||||
, hypothesis
|
||||
, scipy
|
||||
, matplotlib
|
||||
|
@ -18,7 +21,7 @@
|
|||
}:
|
||||
|
||||
let
|
||||
version = "0.7";
|
||||
version = "0.8.0";
|
||||
pname = "tensorflow_probability";
|
||||
|
||||
# first build all binaries and generate setup.py using bazel
|
||||
|
@ -28,21 +31,37 @@ let
|
|||
src = fetchFromGitHub {
|
||||
owner = "tensorflow";
|
||||
repo = "probability";
|
||||
rev = "v${version}";
|
||||
sha256 = "0sy9gmjcvmwciamqvd7kd9qw2wd7ksklk80815fsn7sj0wiqxjyd";
|
||||
rev = "${version}";
|
||||
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 = [
|
||||
# needed to create the output wheel in installPhase
|
||||
python
|
||||
setuptools
|
||||
wheel
|
||||
absl-py
|
||||
tensorflow
|
||||
];
|
||||
|
||||
bazelTarget = ":pip_pkg";
|
||||
|
||||
fetchAttrs = {
|
||||
sha256 = "0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";
|
||||
sha256 = "0135nxxvkmjzpd80r1g9fdkk9h62g0xlvp32g5zgk0hkma5kq0bx";
|
||||
};
|
||||
|
||||
buildAttrs = {
|
||||
|
@ -75,6 +94,7 @@ in buildPythonPackage {
|
|||
numpy
|
||||
decorator
|
||||
cloudpickle
|
||||
gast
|
||||
];
|
||||
|
||||
# Listed here:
|
||||
|
|
Loading…
Reference in a new issue