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-21 03:05:32 +01:00
|
|
|
version = "0.5.22";
|
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-21 03:05:32 +01:00
|
|
|
sha256 = "ed0057dc22bd392df4b3bba23536117e1b2866e3201b12c5a37428d23421a5ba";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|