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