1{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder
2, pytestCheckHook, nose, glibcLocales, fetchpatch
3, numpy, scipy, matplotlib, h5py }:
4
5buildPythonPackage rec {
6 pname = "bayespy";
7 version = "0.5.26";
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 = "sha256-NOvuqPKioRIqScd2jC7nakonDEovTo9qKp/uTk9z1BE=";
16 };
17
18 nativeCheckInputs = [ pytestCheckHook nose glibcLocales ];
19
20 propagatedBuildInputs = [ numpy scipy matplotlib h5py ];
21
22 disabledTests = [
23 # Assertion error
24 "test_message_to_parents"
25 ];
26
27 pythonImportsCheck = [ "bayespy" ];
28
29 meta = with lib; {
30 homepage = "http://www.bayespy.org";
31 description = "Variational Bayesian inference tools for Python";
32 license = licenses.mit;
33 maintainers = with maintainers; [ jluttine ];
34 };
35}