python.pkgs.tensorflow-probability: 0.6 -> 0.7

This commit is contained in:
Timo Kaufmann 2019-06-21 15:11:03 +02:00
parent 183d32842f
commit 0266ca8db0

View File

@ -1,35 +1,56 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, buildPythonPackage , buildPythonPackage
, python
, tensorflow , tensorflow
, decorator
, cloudpickle
, hypothesis
, scipy
, matplotlib
, mock
, pytest , pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "tensorflow-probability"; pname = "tensorflow-probability";
version = "0.6.0"; version = "0.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tensorflow"; owner = "tensorflow";
repo = "probability"; repo = "probability";
rev = "v${version}"; rev = "v${version}";
sha256 = "1y210n4asv8j39pk68bdfrz01gddflvzhxbcvj5jw6rjgaagnhvx"; sha256 = "0sy9gmjcvmwciamqvd7kd9qw2wd7ksklk80815fsn7sj0wiqxjyd";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
tensorflow tensorflow
decorator
cloudpickle
]; ];
# Listed here:
# https://github.com/tensorflow/probability/blob/f01d27a6f256430f03b14beb14d37def726cb257/testing/run_tests.sh#L58
checkInputs = [ checkInputs = [
hypothesis
pytest pytest
scipy
matplotlib
mock
]; ];
# Tests have an invalid import (`tensorflow_probability.opensource`), should # actual checks currently fail because for some reason
# be resolved in the next version with # tf.enable_eager_execution is called too late. Probably because upstream
# https://github.com/tensorflow/probability/commit/77d5957f2f0bdddcb46582799cd9c5c5167a1a40 # intents these tests to be run by bazel, not plain pytest.
doCheck = false; # checkPhase = ''
# # tests need to import from other test files
# export PYTHONPATH="$PWD/tensorflow-probability:$PYTHONPATH"
# py.test
# '';
# sanity check
checkPhase = '' checkPhase = ''
py.test python -c 'import tensorflow_probability'
''; '';
meta = with lib; { meta = with lib; {