diff options
author | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2017-09-03 12:37:50 +0300 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-09-03 10:37:50 +0100 |
commit | 67b3f4bc4bc2fe621588fda30bb8b8be6702420e (patch) | |
tree | 6fb158411001e58cbee59b7261c6ebd18734f180 /pkgs/development | |
parent | 0529e4d90885b4e911162e8f8be077ae22322eba (diff) | |
download | nixlib-67b3f4bc4bc2fe621588fda30bb8b8be6702420e.tar nixlib-67b3f4bc4bc2fe621588fda30bb8b8be6702420e.tar.gz nixlib-67b3f4bc4bc2fe621588fda30bb8b8be6702420e.tar.bz2 nixlib-67b3f4bc4bc2fe621588fda30bb8b8be6702420e.tar.lz nixlib-67b3f4bc4bc2fe621588fda30bb8b8be6702420e.tar.xz nixlib-67b3f4bc4bc2fe621588fda30bb8b8be6702420e.tar.zst nixlib-67b3f4bc4bc2fe621588fda30bb8b8be6702420e.zip |
pythonPackages.bayespy: init at 0.5.10 (#28919)
* pythonPackages.bayespy: init at 0.5.10 * python.pkgs.bayespy: fix more tests by using unicode locale
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/bayespy/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bayespy/default.nix b/pkgs/development/python-modules/bayespy/default.nix new file mode 100644 index 000000000000..9f99708b0714 --- /dev/null +++ b/pkgs/development/python-modules/bayespy/default.nix @@ -0,0 +1,32 @@ +{ stdenv, buildPythonPackage, fetchPypi, pythonOlder +, pytest, glibcLocales +, numpy, scipy, matplotlib, h5py }: + +buildPythonPackage rec { + pname = "bayespy"; + version = "0.5.10"; + name = "${pname}-${version}"; + + # 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; + sha256 = "01cwd88ri29zy6qpvnqzljkgc44n7a17yijizr73blcnh4dz5n1w"; + }; + + checkInputs = [ pytest glibcLocales ]; + 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 ]; + }; +} |