1{ lib, buildPythonPackage, fetchPypi, pythonOlder
2, pytest, nose, glibcLocales
3, numpy, scipy, matplotlib, h5py }:
4
5buildPythonPackage rec {
6 pname = "bayespy";
7 version = "0.5.22";
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 = "ed0057dc22bd392df4b3bba23536117e1b2866e3201b12c5a37428d23421a5ba";
16 };
17
18 checkInputs = [ pytest nose 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 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}