2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
2020-03-26 16:59:29 +00:00
|
|
|
, pytest, nose, glibcLocales
|
2017-09-03 09:37:50 +00:00
|
|
|
, numpy, scipy, matplotlib, h5py }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bayespy";
|
2021-03-21 02:05:32 +00:00
|
|
|
version = "0.5.22";
|
2017-09-03 09:37:50 +00: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-21 02:05:32 +00:00
|
|
|
sha256 = "ed0057dc22bd392df4b3bba23536117e1b2866e3201b12c5a37428d23421a5ba";
|
2017-09-03 09:37:50 +00:00
|
|
|
};
|
|
|
|
|
2020-03-26 16:59:29 +00:00
|
|
|
checkInputs = [ pytest nose glibcLocales ];
|
2017-09-03 09:37:50 +00:00
|
|
|
propagatedBuildInputs = [ numpy scipy matplotlib h5py ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL=en_US.utf-8 pytest -k 'not test_message_to_parents'
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.bayespy.org";
|
2017-09-03 09:37:50 +00:00
|
|
|
description = "Variational Bayesian inference tools for Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|