2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
2020-03-26 17:59:29 +01:00
|
|
|
, pytest, nose, glibcLocales
|
2017-09-03 11:37:50 +02:00
|
|
|
, numpy, scipy, matplotlib, h5py }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bayespy";
|
2021-03-10 13:34:47 +01:00
|
|
|
version = "0.5.21";
|
2017-09-03 11:37:50 +02:00
|
|
|
|
|
|
|
# Python 2 not supported and not some old Python 3 because MPL doesn't support
|
|
|
|
# them properly.
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-10 13:34:47 +01:00
|
|
|
sha256 = "0d86e9ae73e6472c26aeb4de7abd9bf99492fedcbb0485ed7fa23609d2673b42";
|
2017-09-03 11:37:50 +02:00
|
|
|
};
|
|
|
|
|
2020-03-26 17:59:29 +01:00
|
|
|
checkInputs = [ pytest nose glibcLocales ];
|
2017-09-03 11:37:50 +02:00
|
|
|
propagatedBuildInputs = [ numpy scipy matplotlib h5py ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL=en_US.utf-8 pytest -k 'not test_message_to_parents'
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.bayespy.org";
|
2017-09-03 11:37:50 +02:00
|
|
|
description = "Variational Bayesian inference tools for Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|