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