1{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
2, pytest, glibcLocales
3, numpy, scipy, matplotlib, h5py }:
4
5buildPythonPackage rec {
6 pname = "bayespy";
7 version = "0.5.12";
8 name = "${pname}-${version}";
9
10 # Python 2 not supported and not some old Python 3 because MPL doesn't support
11 # them properly.
12 disabled = pythonOlder "3.4";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "9609a3e85f88434a47c8263f40567cd24363d0e10d236354630b670fca313c00";
17 };
18
19 checkInputs = [ pytest glibcLocales ];
20 propagatedBuildInputs = [ numpy scipy matplotlib h5py ];
21
22 checkPhase = ''
23 LC_ALL=en_US.utf-8 pytest -k 'not test_message_to_parents'
24 '';
25
26 meta = with stdenv.lib; {
27 homepage = http://www.bayespy.org;
28 description = "Variational Bayesian inference tools for Python";
29 license = licenses.mit;
30 maintainers = with maintainers; [ jluttine ];
31 };
32}