pythonPackages.pymc3: init at 3.2

This commit is contained in:
Ilya Kolpakov 2018-04-28 21:06:12 +02:00
parent 4797fe8da4
commit f2adf2059a
2 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,64 @@
{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
, Theano
, pandas
, patsy
, joblib
, tqdm
, six
, h5py
, pytest
, nose
, parameterized
, matplotlib
}:
buildPythonPackage rec {
pname = "pymc3";
version = "3.2";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0hpzhkpv7sbwkcva7x914yvzcf1d1a952ynbcx6mvlgv5lqghc39";
};
# No need for coverage stats in Nix builds
postPatch = ''
substituteInPlace setup.py --replace ", 'pytest-cov'" ""
'';
propagatedBuildInputs = [
Theano
pandas
patsy
joblib
tqdm
six
h5py
];
checkInputs = [
pytest
nose
parameterized
];
# The test suite is computationally intensive and test failures are not
# indicative for package usability hence tests are disabled by default.
doCheck = false;
# For some reason tests are run as a part of the *install* phase if enabled.
# Theano writes compiled code to ~/.theano hence we set $HOME.
preInstall = "export HOME=$(mktemp -d)";
postInstall = "rm -rf $HOME";
meta = {
description = "Bayesian estimation, particularly using Markov chain Monte Carlo (MCMC)";
homepage = http://github.com/pymc-devs/pymc3;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ilya-kolpakov ];
};
}

View File

@ -8244,6 +8244,8 @@ in {
pygraphviz = callPackage ../development/python-modules/pygraphviz { };
pymc3 = callPackage ../development/python-modules/pymc3 { };
pympler = buildPythonPackage rec {
pname = "Pympler";
version = "0.4.3";