1{ stdenv, buildPythonPackage, fetchPypi, isPy27, pythonAtLeast
2, Keras, numpy, scipy, six, tensorflow }:
3
4buildPythonPackage rec {
5 pname = "edward";
6 version = "1.3.5";
7 name = "${pname}-${version}";
8
9 disabled = !(isPy27 || pythonAtLeast "3.4");
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "3818b39e77c26fc1a37767a74fdd5e7d02877d75ed901ead2f40bd03baaa109f";
14 };
15
16 # disabled for now due to Tensorflow trying to create files in $HOME:
17 doCheck = false;
18
19 propagatedBuildInputs = [ Keras numpy scipy six tensorflow ];
20
21 meta = with stdenv.lib; {
22 description = "Probabilistic programming language using Tensorflow";
23 homepage = https://github.com/blei-lab/edward;
24 license = licenses.asl20;
25 maintainers = with maintainers; [ bcdarwin ];
26 };
27}