Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 31 lines 872 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, pythonOlder 2, pytest, nose, glibcLocales 3, numpy, scipy, matplotlib, h5py }: 4 5buildPythonPackage rec { 6 pname = "bayespy"; 7 version = "0.5.19"; 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 = "24e1327ce241a0113abf217fbaf41ac25e04f5a01f9ed606610f2f1f2d82d34f"; 16 }; 17 18 checkInputs = [ pytest nose glibcLocales ]; 19 propagatedBuildInputs = [ numpy scipy matplotlib h5py ]; 20 21 checkPhase = '' 22 LC_ALL=en_US.utf-8 pytest -k 'not test_message_to_parents' 23 ''; 24 25 meta = with stdenv.lib; { 26 homepage = "http://www.bayespy.org"; 27 description = "Variational Bayesian inference tools for Python"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ jluttine ]; 30 }; 31}