forked from mirrors/nixpkgs
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
32 lines
859 B
Nix
32 lines
859 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
|
, pytest, glibcLocales
|
|
, numpy, scipy, matplotlib, h5py }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bayespy";
|
|
version = "0.5.17";
|
|
|
|
# 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 = "2e04cd9873eea6891ea8dfd5fc6d718727ea7cc416bc2ced50e00a741386925f";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|