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