nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 32 lines 940 B view raw
1{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder 2, pytest, nose, glibcLocales 3, numpy, scipy, matplotlib, h5py }: 4 5buildPythonPackage rec { 6 pname = "bayespy"; 7 version = "0.5.22"; 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 = "ed0057dc22bd392df4b3bba23536117e1b2866e3201b12c5a37428d23421a5ba"; 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 lib; { 26 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; 27 homepage = "http://www.bayespy.org"; 28 description = "Variational Bayesian inference tools for Python"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ jluttine ]; 31 }; 32}