2017-09-03 11:37:50 +02:00
|
|
|
{ stdenv, 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";
|
2019-12-19 20:31:06 +01:00
|
|
|
version = "0.5.19";
|
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;
|
2019-12-19 20:31:06 +01:00
|
|
|
sha256 = "24e1327ce241a0113abf217fbaf41ac25e04f5a01f9ed606610f2f1f2d82d34f";
|
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'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.bayespy.org;
|
|
|
|
description = "Variational Bayesian inference tools for Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|